Question: C++ PROGRAM Exercise 1: Which time of year? (use switch) Write a program that inputs the month number. Then the program shows one of the

C++ PROGRAM

C++ PROGRAM Exercise 1: Which time of year? (use switch) Write a

program that inputs the month number. Then the program shows one of

Exercise 1: Which time of year? (use switch) Write a program that inputs the month number. Then the program shows one of the following messages: Input Message Month is 12-2 Winter time Month is 9-11 Autumn time Month is 6-8 Summer time Month is 3-5 Spring time In addition, if the month is 4, then show the message: Ramadan starts in April this year.". Sample input / output: Enter a month number: 8 Hello ... This is summer time... Enter a month number: 4 Hello ... This is spring time... Ramadan starts in April this year. Exercise 2: Amount Due (Use switch) Write a program that reads the code and the quantity of an item in a supermarket. According to the (code-price) table below, the program calculates and prints the amount due for that quantity. code 1 2 3 4 5 price 6.49 10.50 9.99 15.00 21.50 Sample input / output: Enter the code and quantity of the item you want to buy: 4 2 The amount due is: 30 Enter the code and quantity of the item you want to buy: 3 3 The amount due is: 29.97

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!