Question: In c language please Problem -Since the problem gives 3 parts to test, a, b, and c,: let's use a switch, if / else if

In c language please  In c language please Problem -Since the problem gives 3 parts

Problem -Since the problem gives 3 parts to test, a, b, and c,: let's use a switch, if / else if / else structure and a while loop to run the program 3 times to test the data and print out answers. Also you must use/ investigate the built in function cell" for the duration of the call. Let's set some uniformity for the time chart Everything up to and including 10 minutes is the first time category. As with the cell phones today if we go 10 minutes and 0.1 seconds they will charge you for the minute (some do), so the second time category is everything over 10 minutes and up to and including 30 minutes. The 3rd and last time category would be everything over 30 minutes. 30 minutes and 0.001 seconds gets into the third category (use filename system: lastname cellular.c) Duration of the call The time of day for the call 0.1-30 minutes 1-10 minutes range More than 30 minutes range 1.00+S0.08 /minute 2.60+$0.06/minute for for additional minutesadditional minutes above above 10 S0.70 +0.05 /minute 1.70 +0.04 /minute for for additional minutesadditional minutes above above 10 $0.40+0.03 /minute $ 1.00+S 0.02 /minute for for additional minutes additional minutes above above 10 Day: 8 am to 6 pm $ 0.10/minute 30 Evening: 6:01 pm to 12 am, midnight $ 0.07/minute 30 Night 12:01 am to 7:59 am 0.04/ minute 30 The program asks the user to enter the time the call is made (during the day, during the evening, or during the night). The program also asks the user to enter and the duration of the call (a number that can have one digit to the right of the decimal point). If the duration of the call is not an integer, the program rounds up the duration to the next integer. The program will display the calculated cost of the cal For this program use a While loop to check the 3 input values scenario (a) 8.3 minutes at 1:32 pm scenario (c) 29.6 minutes at 1:00 am scenario 34.5 minutes at 8:00 pm How many calls do you want to evaluate? >>>>3 Enter the time the call is made (d = day, e-evening, n-night) here >>>> xxxxxx Enter the duration of the call (this must be in minutes such as 8.3)>xxxxxx The cost of the call is (shown here with 2 decimal places-first call is 0.90)xxxxxx Repeats this area 2 more times and then press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!