subject

1.  Write a program that read in a number and gives the user 3 chances to guess the square of that number, if the user gets the square right, the program stops and display the message “you are correct”, if the user gets the guess wrong, the program displays the message “wrong guess please try again” if 3 chances have been exhausted the program stops and displays the message “You have exhausted all three chances”.​

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:40
You have a linux system that has a 1000gb hard disk drive, which has a 90gb partition containing an ext4 filesystem mounted to the / directory and a 4gb swap partition. currently, this linux system is only used by a few users for storing small files; however, the department manager wants to upgrade this system and use it to run a database application that will be used by 100 users. the database application and the associated data will take up over 200gb of hard disk space. in addition, these 100 users will store their personal files on the hard disk of the system. each user must have a maximum of 5gb of storage space. the department manager has made it very clear that this system must not exhibit any downtime as a result of hard disk errors. how much hard disk space will you require, and what partitions would you need to ensure that the system will perform as needed? where would these partitions be mounted? what quotas would you implement? what commands would you need to run and what entries to /etc/fstab would you need to create? justify your answers.
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
What are the three uses of a screw?
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
You know the right answer?
1.  Write a program that read in a number and gives the user 3 chances to guess the square of that n...
Questions
question
Mathematics, 04.03.2021 01:00
question
Mathematics, 04.03.2021 01:00
question
Arts, 04.03.2021 01:00
question
Biology, 04.03.2021 01:00
question
Mathematics, 04.03.2021 01:00
question
Mathematics, 04.03.2021 01:00
question
Mathematics, 04.03.2021 01:00