Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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-

image text in transcribed

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 cents

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

ISBN: 3319712721, 978-3319712727

More Books

Students also viewed these Databases questions