Question: QN . 5 . USING CONDITIONAL STATEMENTS, WRITE THE C PROGRAMMING CODE FOR THE FOLLOWING: a . A parking lot charges $ 2 for the
QN USING CONDITIONAL STATEMENTS, WRITE THE C PROGRAMMING CODE FOR THE FOLLOWING:
a A parking lot charges $ for the first hour or part thereof and $ for each additional hour or part thereof. Ask the user for the number of hours parked and calculate the total charge.
b A library charges a fine for books returned late. For the first days, the fine is $ per day, for to days the fine is $ per day, and above days the fine is $ per day. Ask the user for the number of days the book is late and calculate the fine.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
