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

please someone solve this homework problem. I am not good at programming. Progra

ID: 3787934 • Letter: P

Question

please someone solve this homework problem. I am not good at programming. Program needs to be done with Clion using (cin, cout format in c++)

Thank you.

You have been asked to help prototype a “movie-rental-system” that manages the rental and returns for 10 movies and 8 customers as a prototype. Assume that each customer can only rent one movie at a time; the rented movie must be returned before another rental can be made. A user of the program will be presented with a menu of four options:

Status. 2. Return Movie. 3. Rent Movie. 4. Exit.

If option 1 (Status) is selected, the program will first print the customers names and the movie rented by them (if any). It will then print the catalog movies available for checkout (i.e. only the movies that are not currently rented by another user). If option 2 (Return Movie) is selected, the program will print the list of registered customers and ask the user to select their number . For simplicity, assume that the registered customers are fixed to be the TAs and Instructors of CIE. The user can enter the number (1-8) to select the customer number. Once the customer is selected the movie is returned to the store and will be made available to rent by another customer.

Kyle Anderson 2. Kyle Christensen 3. Bradley Evans 4. Mathews Jacob 5. Hans Johnson 6. Elaine Mou 7. Brian Schweer 8. Richard Su

If option 3 (Rent Movie) is selected, the program will ask the user to identify the customer from the list of registered customers. The user can enter the number (1-8) to select. If the customer already has a rental, the system prints out a message that the movie should be returned before the new rental can occur. Otherwise the system will present the list of available movies to rent and ask the user to select one of them. The usr can enter the number (1-12) to select the movie. The system marks the movie to be rented to the customer and removes it from the available list of rentals and returns to the main menu.

Passengers 2. La La Land 3. Sing 4. Suicide Squad 5. The Girl on the Train 6. The Magnificient Seven 7. Fifty Shades Darker 8. Moana 9. Arrival

Your task in homework 1 is to write a C++ program to implement the above menu-based movie-rentalreservation system. An example run of the program is provided at the end of this file. For simplicity, you can hardcode the users and movies as the list below. Some additional general requirements follow:

• You must implement your program in the file named hw1.c within your hw1 folder in your homework directory.

• You must include a standard documentation block (to include programmer, filename, and a brief description of the program) at the top of your file and include comments throughout the program.

• You are required to split the functionality into multiple helper functions to make the code re-usable and easy to debug. A brief documentation block must be included for each of the functions to briefly describe the purpose of the function along with any inputs/outputs

• While this homework assignment specifies that 8 users and 11 movies are to be managed, it should be easy to modify the program to manage a different number of study rooms. Thus, make sure that that your program would require the same number of lines of code if 1000 movies and 100 users were used. (Hint: think about using arrays.)

• From a user’s perspective, the movies must range from 1 to 12 (and not, for instance, from 0 to 11). Internally, you may maintain any convention you like (e.g., 0 to 11); you just must ensure that any time the program prints/reads movies/users, the numbering convention is maintained. General grading guidelines Documentation (15 points)

• 5 points: including programmer, filename, and a brief description of the program within the top documentation block

• 10 points: reasonable comments throughout the program (including having documentation blocks for any functions you may write yourself) Program (85 points)

• 10 points: use of appropriate data types and code organization (including not repeating a large amount of code)

• 15 points: correctly displaying/implementing the menu (displaying the menu, reading in the selected option, having the program perform a different action for each option, continuing to display the menu until option 4 (exit) is selected)

• 20 points: correctly implementing option 1 (reserve study room)

• 20 points: correctly implementing option 2 (leave reserved study room)

• 20 points: correctly implementing option 3 (status) Extra credit (up to 10 points) To receive up to 10 extra credit points, modify the system to include upto 2 rented movies per user. Note that it is expected that you will work on the extra credit portion without help from the instructors or TA’s. (You may ask clarification questions, however.) Thus, please do not attempt the extra-credit option until everything else is working. Submission The final version of your program must be committed to svn by Tuesday, September 16, 2014 at 11:59 p.m

Explanation / Answer

#include<iostream.h>

#include<conio.h>

void main()

{ int opt;

cout<<"Movie rental system";

cout<<"The customers present are::1.Kyle Anderson 2. Kyle Christensen 3. Bradley Evans 4. Mathews Jacob 5. Hans Johnson 6. Elaine Mou 7. Brian Schweer 8. Richard Su.SELECT ONE:NUMBER";

cout<<"Movies avaliable are::11)movie1,12)movie2,13)movie3,14)movie4,15)movie5,16)movie6,17)movie7,18)movie8,19)movie9,20)movie10";

cout<<"Enter the person's id from the respective names given above";

int id;

cin>> id;

cout<<"The menus are :1.Status. 2. Return Movie. 3. Rent Movie. 4. Exit. SELECT ANY ONE::";

cin>>opt;

if(opt==1)

void status(id);

else if (opt==2)

void returnmovie(id);

else if(opt==3)

void rentmovie(id);

else

{cout<<"exit";

retrun(0);

}

void status(id)

{

}

void returnmovie(id)

{int m;

cout<<"enter movie code:"

cin>>m;

cout<<"thank you...the list from which u can opt movies is:"

for (int i=11;i<21;i++)

{

if(i!=m)

cout<<"i":

}

void rentmovie(id)

{

cout<<identify the movie left";. .

int returned;

cin>>returned;

for (int i=11;i<21;i++)

{

if(i!=returned)

cout<<"i":

}

<<"Movies avaliable are::i movies}

}

}

a range of answer is given.....no tym...else i could have wriitten clearly...its too lengthy