Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem Statement: Movie Rental Store You are required to write a program for Mo

ID: 3614574 • Letter: P

Question

Problem Statement: Movie Rental Store

You are required to write a program for Movie Rental Store. Thebasic idea is that user/reader will provide customer information,movie name, and number of days. Upon this information your programwill calculate the charged amount for that movie.

Detailed Description:

1. The program should display

Please provide customer Name:

Please provide Movie Description.

Enter ‘R’ for Regular Movie.

Enter ‘C’ for children Movie.

Enter ‘N’ for New Released Movie.

Enter ‘E’ for English Movie.

Then your program should take these inputs,

2. Depending upon the choices that user hasentered, your program will further display the prompt

3. If user has entered Movie description, thenyour program should prompt the user to enter the Movie Name andNumber of days.

-----------------------------------------------------------------

Movie Name :

Number of day’s:

-----------------------------------------------------------------

4. After getting all this information, nowwrite a function which will calculate rental/charged amount on thebasis of this information.

To calculate rental/charged amount we will use this formula:

Rental amount = charged amount * number of days

Charged amount will be different for different movies accordingto following description:

Regular Movie: 40 RS

Children Movie: 30 RS

English Movie: 50 RS

New release: 100 RS

After calculating charged amount for this movie and display iton the screen.

Sample Output

Please provide customer Name: Aftab

Please provide Movie Description:

Enter ‘R’ for Regular Movie:

Enter ‘C’ for children Movie:

Enter ‘N’ for New Released Movie:

Enter ‘E’ for English Movie:

R

Please provide following information:

Movie Name : Jinnah

Number of day’s: 3

Final output:

-----------------------------------------------------------------

Customer Name: Aftab

Movie Type : Regular

Movie Name : Jinah

Number of day’s: 3

Your Rental Amount is: 120 Rs

-----------------------------------------------------------------

Explanation / Answer

please rate - thanks #include using namespace std; int rentalamount(int,int); int main() {char choice; string name,movie,type; int days,rate; coutname; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote