Assume that the 4-digit numbers that are equal to the square of the sum of the numbers divided into two from the middle are called Semisquare Numbers. Write the program that says whether a 4-digit number entered from the keyboard is a Semisquare Number. For example, the number 2025 is a semi-square number. When split in two, the numbers 20 and 25 are revealed 20 + 25 = 45 45^2 = 2025. Example 1: Enter the four-digit number: 9801 The number entered is a semi-square number Example 2: Enter the four-digit number: 1234 The number entered is not a semi-square number

Question

This is a PYTHON question

 

Assume that the 4-digit numbers that are equal to the square of the sum of the numbers divided into two from the middle are called
Semisquare Numbers. Write the program that says whether a 4-digit number entered from the keyboard is a Semisquare Number. For
example, the number 2025 is a semi-square number. When split in two, the numbers 20 and 25 are revealed
20 + 25 = 45
45^2 = 2025.
Example 1:
Enter the four-digit number: 9801
The number entered is a semi-square number
Example 2:
Enter the four-digit number: 1234
The number entered is not a semi-square number
Expand
Transcribed Image Text

Assume that the 4-digit numbers that are equal to the square of the sum of the numbers divided into two from the middle are called Semisquare Numbers. Write the program that says whether a 4-digit number entered from the keyboard is a Semisquare Number. For example, the number 2025 is a semi-square number. When split in two, the numbers 20 and 25 are revealed 20 + 25 = 45 45^2 = 2025. Example 1: Enter the four-digit number: 9801 The number entered is a semi-square number Example 2: Enter the four-digit number: 1234 The number entered is not a semi-square number

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: Suppose you have been hired to develop a musical chair game. In this game there will be7 participant...

A: The Java program which will be user driven program which takes the input the user from the player an...

Q: What does the following code?   void xxxx(int arr[], int index[], int n){int temp[n]; for (int i=0; ...

A: Objective: Here, a function is given, and the outcome    Answer: Here, the array named 'index' will ...

Q: Write a python program to accept a string from the user and check whether the string contains the fo...

A: # string module is importedimport string # A string is asked from the userstr1 = input("Enter the st...

Q: write a simple c++ program that calculates the amount of money earned on an investment, based on an ...

A: Please find the answer below :  

Q: 1.•  C# By who the programming language which In history to develop started? 2• C# Features what are...

A: Actually, C# is also a one of the programming language.

Q: Help please

A: Solution is in Step 2.

Q: Database normalization is needed. 1NF, 2NF, 3NF, BCNF and 4NF. If some steps can be skipped, please ...

A: NORMALIZATION is a database design technique that reduces data redundancy and eliminates undesirable...

Q: Explain what the following lines of code do pad = len(byteblock)%16 * (-1)byteblock_trimmed = bytebl...

A: To understand that portion Let see following example from Crypto.Cipher import AESfrom Crypto import...

Q: This code is all in Java  Need help with the parts that say TODO  ----------------------------------...

A: The ask is to build the method for enabling and disabling the selectors for the scores represented b...

Q: What is the output of the following code? 1: interface Nocturnal {2: default boolean isBlind() { ret...

A: interface Nocturnal {                       //creates an interface    default boolean isBlind() {   ...

Q: Big data a. Explain in your own words what Big Data is and what its characteristics are. b.What are ...

A: a. Big data is the data in huge volume. Big data can not be stored and processed by any traditional ...

Q: help please

A: The required C++ code is: #include<iostream>#include<vector>using namespace std;// swap ...

Q: can you create a Flowchart with pseudocode about online banking or any application or software.

A: The pseudocode for online banking is given by: Start Customer navigates to Bank website Customer as...

Q: What is enterprise data modeling?

A: Actually, The enterprise data model is a independent of how the data is physically stored, processed...

Q: Create a two-dimensional array to contain the three sale items for five different artists. Asingle a...

A: Since the Programming language is not mentioned in the question, we will answer this question in C++...

Q: Given the Boolean function: F(w,x,y,z) = w’x’y’z’ + wx’y’z’ + w’xy’z + w’xyz + w’xyz’ + w’x’yz’ + w...

A: F(w,x,y,z) = w’x’y’z’ + wx’y’z’ + w’xy’z + w’xyz + w’xyz’ + w’x’yz’ + wx’yz’ The Kmap will be:

Q: Please explain the three components of a security auditing system. Also, please provide example tool...

A: A security audit is the high level description of the many ways organization can test and access the...

Q: Question 2.2 Write a function createPassword()with no return value to randomly select 8 capital lett...

A: NOTE: - Since the programming language is mentioned, the below problem is implemented in C language....

Q: Given a positive integer, N, the ’3N+1’ sequence starting from N is defined as follows: If N is an ...

A: The main objective of the C++ program, main. cpp is to prompt the user to enter a value and read a v...

Q: Given a non-dummy headed circular list, write down a method for inserting an elementinto the list.

A: In a circular linked list, the last node contains a pointer which points to the first node of the li...

Q: sample code example for the multiple interfaces in java with explanation  and clear instructions pls...

A: Properties of Interface in Java An interface is similar to a class and contains a collection of abst...

Q: public void enableselectors() { // need help -- make this code actually enable or disable the select...

A: The ask is to build the enable and the disable methods for the map of selectors of Category object k...

Q: Assume that the 4-digit numbers that are equal to the square of the sum of the numbers divided into ...

A: #note: if you need in any other language than please post question again mentioning the programming ...

Q: A hot air balloon accelerates upward from rest at a rate of 0.5m/s. When the balloon is at a height ...

A: The python program is written where it calculates the velocity of the balloon. The math functions ar...

Q: How to write a valid standard php code block?

A: Please find the answer below :

Q: What is a Bipolar Junction Transistor (BJT)? What is a Field Effect Transistor (FET)? How can transi...

A: It could be used as an amplifier, a philter, a rectifier, an oscillator, or even a switch, as seen i...

Q: Who owns electronic mail systems, and why they do?

A: Electronic mail, since around 1993 is a method of exchanging digital messages from an author to one ...

Q: Consider a magnetic disk with 1000 cylinders rotating at a speed of 7200 revolutions per minute. The...

A: Given:- Total number of cylinders =1000 Number of Revolutions per minute = 7200 Sector size =1024 By...

Q: Please explain the 4 questions on the bottom using the topology provided. Please provide reasoning f...

A: Given: R1#ping 10.5.5.55 source 10.1.1.1 Type escape sequence to abort. Sending 5,100-byte ICMP Echo...

Q: Write a method which takes as input a singly linked list and print the first duplicatenumber. Please...

A: import java.util.*;public class Duplicate{static class Node{int data;Node next;};static Node head_re...

Q: Write a function str_replace that takes three strings, str1, str2 and str3; and replaces the first o...

A: Please find the answer below :

Q: Amba Aambika and Ambalika have money in the ratio x:y:z. All go to market and spend money in ratio p...

A: Procedure followed: Declare variables to store ratios of having money as x,y, and z. Declare variab...

Q: What is the answer for following questions?

A: 1. To find the second largest element of the given array, first of all, sort the array.Compare the p...

Q: you have a memory of 128 gbs, which is divided into 16 blocks. Give the complete addresses of the fo...

A: Block size = 128 Gbs Block = 16 blocks Solution: we have size of main memory = 128 gb               ...

Q: Matlab Question  Write a function called DivisibleTest(M) that loops through the values 1 through M ...

A: Matlab Code is   %function named DivisibleTest function DivisibleTest(M)       %for loop to run for ...

Q: You are given two dummy-headed singly-linked lists, write a method to sum theintegers represented in...

A: STEP 1:-   The linked list is a data structure. This data is store in the node and the node is divid...

Q: Develop the Java program for automate the admission process portal as mentioned below: Consider the...

A: Program: import java.io.*; import java.util.*; import java.util.Random; import java.util.ArrayList; ...

Q: I want to write c++ program of this ??

A: The C++ program and necessary comments are provided in the program Input text file: Sample output o...

Q: Six files F1, F2, F3, F4, F5 and F6 have 100, 200, 50, 80, 120, 150 records respectively. In what or...

A:  there are Six files F1, F2, F3, F4, F5 and F6  containing 100, 200, 50, 80, 120, 150 records respec...

Q: Why Data Bus is bidirectional

A: Data bus is bidirectional :  It is a group of conducting wires which carries Data only. Data bus is ...