Question: PLEASE WRITE IN C Problem 1 (50 points) - A furniture renting store has asked you to create a program that calculates the rental costs.
PLEASE WRITE IN C

Problem 1 (50 points) - A furniture renting store has asked you to create a program that calculates the rental costs. The store rents several types of furniture. Furniture is rented monthly 1. A minimum fee (usually higher than monthly cost) is charged for the first month. 2. After the first month, the store charges a monthly rental fee. 3. There is a maximum charge for any given year. 4. The program takes furniture selection and number of months as input. It calculates and prints the charge. 5. Input validation: the program validates the input for furniture selection (1-5) and numbers of months (greater than 0). If any of the two inputs is invalid, the program print a message and exit. Furniture Sofa Loveseat 4 Post Bed Dresser Kitchen Table First Month (minimum) $60 $45 $55 $28 $35 Monthly Cost after the First Month $45 $30 $38 $25 Maximum per Year $450 $280 $350 $200 $220 $20 An example input/output: Please select from the following menu: 1. Sofa, 2. Loveseat, 3. 4 Post Bed, 4. Dresser 5. Kitchen Table Enter furniture selection: 1 Enter months rented: 3 Amount due ($): 150
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
