Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Programming C language # 1 Name Use a loop to write your name ten times Show two different loop styles to accomplish this (

In Programming C language
#1 Name Use a loop to write your name ten times
Show two different loop styles to accomplish this (so two examples a and b)
#2 Fifty 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
#3 Absolute 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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions