Question
Book Rental Assignment in C Programming For this assignment you need to take the users input and convert users book cost to satisfy the following
Book Rental Assignment in C Programming
For this assignment you need to take the users input and convert users book cost to satisfy the following situations using if/else, and switch statements:
-if user is student, they only pay 10% for book rental.
-if user is something else, they will pay 30% on the first $100 and then 10% on any additional amount over $100.
**keep in mind that at the end of your mathematical conversions, you will need to convert the amount they will pay to the correct amount value in words (See example below)**
**make sure to use separate Methods/functions to organize your program properly**
See image below-
EXAMPLE: Welcome User! Find out the cost for your rental fee below. What is the cost of the book? 525.99 Are you a student or other? S Your rental fee will be: $52.59 Welcome User! Find out the cost for your rental fee below. What is the cost of the book? 1050.00 Are you a student or other? O Your rental fee will be: $125.00 Conversion: one hundred twenty five dollars and zero centsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started