Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write this code in c language 7. Write an interactive program that contains an if statement that may be used to compute the area of
write this code in c language
7. Write an interactive program that contains an if statement that may be used to compute the area of a square (area = side?) or a circle (area = r * radius?) after prompting the user to type the first character of the figure name (S or C). 8. Create a program that implement the following decision table using a nested if statement. Assume that the grade point average is within the range 5.0 through 1.0. Grade Point Average Transcript Message 5.0 - 3.01 Failed 3.0 - 1.76 Passed 1.75 1.51 Dean's Lister for semester 1.50 1.00 President's lister for semester 9. Create a program that implement the following decision table using a multiple- alternative if statement. Assume that the wind speed is given as an integer. Wind Speed (mph) Category below 25 not a strong wind 25 - 38 strong wind 39 - 54 gale 55 - 72 whole gale above 72 hurricane 10. Create a program that has switch statement that assigns to the variable lumens the expected brightness of an incandescent light bulb whose wattage has been stored in watts. Use this table: Watts Brightness (in Lumens) 15 125 25 215 40 500 60 880 75 1000 100 1675 Assign - 1 to lumens if the value of watts is not in the table
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started