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

Data Structures

Algorithms

Operating Systems

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: 1. Why Data Bus is bidirectional? ...

A: Introduction of Bus organization and Registers: In computer architecture, a bus is a group of wires ...

Q: Q.3.3 You are given the "resource requirements plan" diagram for a system, website, or network desig...

A: Q.3.3.1 On first day there is a need of designers from activity 1,2 and 3 Activity 1 needs 2 designe...

Q: 1 Insert the following customer into the CUST_MYSQL table, allowing the AUTO_INCREMENT attribute set...

A: insert into CUSTOMER(CUST_LNAME, CUST_FNAME, CUST_BALANCE)values('Powers', 'Ruth', 500);

Q: Subject:DataCOmmunication

A: In data communication, ALOHA was prescribed for enabling data transfer among wireless network channe...

Q: Write a C program that reads an integer from the user (keyboard), namely n. Your program should prin...

A: Using the basic C header files for keywords and functions. For finding the sum of digits we use whil...

Q: This is a PYTHON question. I have just minutes please help me

A: The square of sum of first two and remaining two digits should be same as number

Q: Create student object class (Student.java) Student objects should have the following attributes: s...

A: Actually, java is a object oriented programming language. It is a platform independent. 

Q: Can you help me with swim-lane process diagram for retiring an old computer which has sensitive info...

A: A swim-lane diagram is a type of flowchart that delineates who does what in a process.  Using the me...

Q: What is the output of the following code?import rope.*;import static rope.Rope.*;public class RopeSw...

A: Solution: Create two different classes named “RopeSwing.java”, and “Rope.java”. In the below program...

Q: *6.7 (Financial application: compute the future investment value) Write a function that computes fut...

A: //SOURCE CODE IN JAVA import java.util.*; import java.util.Scanner; class FutureInvestmentValue { pu...

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

A: The code is written in java

Q: Create the above hierarchy as follows” Create Book class having above attributes provide getter, se...

A: public class Book{        //declare data members    private String authorName;    private double cos...

Q: this practice assignement wants me to Write an application that contains an array of 10 multiple-cho...

A: There are the following errors in the given code: The array of string questions has not been initia...

Q: In this exercise, we will examine how replacement policies impact miss rate. Assume a 2-way set asso...

A: In LRU or Least Recently Used algorithm, the least recently used item is discarded first. MRU or Mos...

Q: Question 4: a) Which form of biometric technology do you prefer for identification purposes: fingerp...

A: Commonly used biometric technology Fingerprint biometrics is based on the recognition of specific p...

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: (MATLAB) Create the following vector using a while loop: [0 -20 -40 -60 -80]

A: Please find the answer below :  

Q: b) Sequential and direct access are two methods to locate data in memory. Discuss why major devices ...

A:   Sequential and direct access are two methods to locate data in memory. Discuss why major devices n...

Q: Design an up-down counter for 8085 to count from 0 to 9 and 9 to 0 continuously with a 1.5-second de...

A: PROGRAM: start: MVI B,00Hdisplay:OUT 1.5 LXI H  // COUNTERLOOP: DCX H //DECREMENT COUNTER MOV A,L OR...

Q: How does Drones invade privacy? How are drones linked to privacy. How can it be prevented?

A: Drones are fun for drone enthusiasts to use, but they can fly them over their property or in public ...

Q: What is the correct floating point decimal notation of (2.5)base 10 to base 2.

A: Given decimal floating-point number: (2.5)10 Step 1: Convert the “2” into binary digit Divide the “2...

Q: Could you help me find a complete trace of this function? Please explain each step in order. Thank y...

A: Answer: During the execution first print begin. Then calling the function with fcn(5, name). In f...

Q: Question-1 There are thousands of customers in an ABC Bank who use ATM services. The ABC Bank stores...

A: import java.util.*; public class Solution {       /*Function to find the index of the given element*...

Q: What type of measure scale is being used? Nominal, Ordinal, Interval or Ratio. Karachi daily temper...

A: Explanation: Nominal Scale are used for labelling variables without any quantitative value, Example...

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: Wrike the Python code for following algorithm. Step 1: Create one text file using Python. Step 2: Ad...

A: Program approach: create the new  file and open in write mode as  file = open("text.txt", "w")  and...

Q: 5) Write the Truth table for the following logic gatesugmoo oy ni 8AJT. a) OR gate, b) AND gate, c) ...

A: Click to see the answer

Q: This is a MATLAB Coding problem: Implement a recursive function, called count, that takes two inputs...

A: Code: function index=count(A,b) %defining the function n=numel(A); %determining the size of array in...

Q: Alice and Bob use the following challenge –response authentication scheme based   on digital signatu...

A: Bob send challenge to Alice. Bob -> verifier Alice -> claimant Here, we have two categories of...

Q: python    save the them in file named accounts.txt open the file with ‘a’  mode to append the new ac...

A: # Append-adds at lastfile1 = open("accounts.txt", "a") # append modewhile True: name = input("En...

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: this practcie assignment wants me to Write an application that contains an array of 10 multiple-choi...

A: //implementing the quiz by arrays import javax.swing.JOptionPane; public class Quiz { private static...

Q: Convert the following program into Pep/9 assembly code: #include using namespace std; const numLoo...

A: Actually, program is a executable program that runs on a computer.

Q: 1. a) Give an ∈-NFA for strings of the form 01*0*1 over the alphabet Σ = {0, 1} b) Explain the seque...

A: In NDFA, for a particular input symbol, the machine can move to any combination of the states in the...

Q: Design a class named TermPaper that holds an author’s name, the subject of the paper, and anassigned...

A: PHP program:   <?php   //TermPaper class class TermPaper {         //class properties     public ...

Q: Here, A is the start node and G is the goal node. h=12 14 11 h=3 h=0 12 h=20 A E G h=18 10 1 2 16 F ...

A: Click to see the answer

Q: What is the prefix function or LPS array for the pattern: "AABAACAABAC" ?

A: ⦁ For LPS (Longest Palindrome Substring), we check each substring is a palindrome or not.  ⦁ We use ...

Q: This is a PYTHON quesion.

A: Given program is below with well commented and with output.

Q: Produce the results by applying COCOMO Model on the given data.   A small size project of 100 KLOC i...

A: Produce the results by applying COCOMO Model on the given data.     A small size project of 100 KLOC...

Q: write a c++ program in wich you have to Declare a two-dimensional array which can be used to store a...

A: Introduction of Program: The C++ program takes 15 items budget for every 12 months from the user and...

Q: A company pays its employees on a weekly basis. The employees are of four types: Salariedemployeesar...

A: Program approach: Import necessary libraries. Create employee class as abstract type Define a metho...