Oct 2 Lab Assignment

Assume the input is valid. Use examples below to test your program

For the college course students must use a textbook. There are 3 options: rent, purchase paper copy, and purchase digital copy. The cost of renting the textbook is 5 dollars per week. The digital copy costs 50% less than the paper copy.

Write a program that reads a paper book price, duration of the course (in weeks), and student choice. Use the following: rent - enter 1, purchasing paper copy - enter 2, purchasing digital copy - enter 3.
The program finds the final price of the book.

Example 1: Suppose, book paper price is $49.99 duration of the course in weeks is 14 weeks, and the student choice is 1 (rent)
Output: final_cost=70.0 dollars

Example 2: Suppose, book paper price is $49.99 duration of the course in weeks is 7 weeks, and the student choice is 2 (paper copy)
Output: final_cost=49.99 dollars

Example 3: Suppose, book paper price is $35.00 duration of the course in weeks is 14 weeks, and the student choice is 3 (digital copy)
Output: final_cost=17.50 dollars