Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C Programming code answer these questions Ask the user to enter a number and tell them if the number is > 5 0 or

In C Programming code answer these questions
Ask the user to enter a number and tell them if the number is >50 or not
Challenge: guard for valid input ie make sure they enter a number/not string garbage
Ask the user to enter a number then print the absolute value of it
Challenge: guard for valid input ie make sure they enter a number/not string garbage
#4 Random Print out a random number between 5 and 8 using the random function.
Show two different ways to accomplish this, one that includes the 8 as a possible answer and one that is non-inclusive of the 8.
#5 Free Choice Free choice: write a program that uses any math function we have not used (so dont use random or abs).
#6 Voltage Ask a user to enter a number and then if its <=30 tell them low voltage, 31-59 tell them medium voltage,>=60<240 tell them high voltage and if it's over 240 or over tell them electrocution
#7 Namecount Redo #1 but every time you print your name out also print out the value of the loop counter do this five times for each loop style you used in problem 1(so two examples a and b)
Patti Koenig #0
Patti Koenig #1
Patti Koenig #2
#8 Fiftytally Redo #2 but this time put it in a loop that keeps going asking for numbers until you enter a negative number, at which point youll 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

2. In Prob. 1, find a basis for S S.

Answered: 1 week ago