Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project # 3 - branching - library fines calculator Assignment Content This Project requires concepts inclusive of Chapters 1 - 3 . You must use
Project # branching library fines calculator
Assignment Content
This Project requires concepts inclusive of Chapters
You must use branching Chapter and variables with correct data types and format specifiers Chapter
Careful attention to detail on format is very important for this project. Please reference the example output provided.
You have been hired by Tulsa County library to write a C program to calculate library fines.
The program will ask the user for the value of the book, how many days a book was borrowed as agreed, as well as how many days the book was actually kept. The difference
between those will be the number of days the fine will be calculated on the fine must be capped at the price of the book
Fines are as follows:
to days cents per day
to days $ per day
to Days $ per day
days and beyond $ per day
Welcome to the Tulsa County library fine calculator
Please enter price of the book:
Please enter agreed days borrowed:
Please enter days kept:
Agreement was days but book kept for days, fine for days is $
Step 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