#8 Fiftytally Redo #2 but this time put it in a loop that keeps going asking for numbers until you enter 0, at which point you'll exit the loop and tell them how many of their numbers were > 50. This one requires that you use a loop and also keep a tally of the number of times the number entered is over 50

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter1: Fundamentals Of C++ Programming
Section1.3: Preliminary Three: Software Development
Problem 7E: (Statistics) This is the formula for the standard normal deviate, z, used in statistical...
icon
Related questions
Question

python3,

#8

#2 Fifty Ask the user to enter a number and tell them if the number is >50 or not
Advanced: guard for valid input ie make sure they enter a number/not string garbage
#3 Absolute Ask the user to enter a number then print the absolute value of it
#4 Random Print out a random number between 100 and 200 using the random function
#5 Free Choice Free choice: write a program that uses any math function we have not used (so
don't usGandom or abs). For example write a program that takes the power of something, or
square root or etc. You can look up math functions online and pick one.
#6 Voltage Ask a user to enter a number and then if its < 30 tell them low voltage, 30-60
tell them medium voltage, 61-100 tell them high voltage
#7 Namecount Redo #1 but every time you print your name out also print out the value of
the loop counter(for example the first three lines might look like this) do this ten times
Patti K 0
Patti K 1
Patti K 2
#8 Fiftytally Redo #2 but this time put it in a loop that keeps going asking for numbers until
you enter 0, at which point you'll exit the loop and tell them how many of their numbers
were > 50. This one requires that you use a loop and also keep a tally of the number of times
the number entered is over 50
Transcribed Image Text:#2 Fifty Ask the user to enter a number and tell them if the number is >50 or not Advanced: guard for valid input ie make sure they enter a number/not string garbage #3 Absolute Ask the user to enter a number then print the absolute value of it #4 Random Print out a random number between 100 and 200 using the random function #5 Free Choice Free choice: write a program that uses any math function we have not used (so don't usGandom or abs). For example write a program that takes the power of something, or square root or etc. You can look up math functions online and pick one. #6 Voltage Ask a user to enter a number and then if its < 30 tell them low voltage, 30-60 tell them medium voltage, 61-100 tell them high voltage #7 Namecount Redo #1 but every time you print your name out also print out the value of the loop counter(for example the first three lines might look like this) do this ten times Patti K 0 Patti K 1 Patti K 2 #8 Fiftytally Redo #2 but this time put it in a loop that keeps going asking for numbers until you enter 0, at which point you'll exit the loop and tell them how many of their numbers were > 50. This one requires that you use a loop and also keep a tally of the number of times the number entered is over 50
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning