Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 6) Write the pseudocode and a program that asks the user to provide the amount of change in cents. Calculate how many coins (quarters,

Question 6)

Write the pseudocode and a program that asks the user to provide the amount of change in cents. Calculate how many coins (quarters, dimes, nickels and pennies) must be given back to the client so that they have the LEAST amount of coins. For example,

if the change is 43 cents, the client should receive:

1 quarter(s), 1 dime(s), 1 nickel(s), 3 pennies.

If the change is 289 cents, the client should receive:

11 quarter(s), 1 dime(s), 0 nickel(s), 4 pennies

What will be the amount of change if the total change is 342 cents?

Question 7) Write a program that asks the user to provide the following information, in this exact order:

Store Number (an integer)

Store Name

Cost

Calculate the total cost of the purchase, assuming a 6.75% tax rate is being applied. Display the Store Number, Store Name and the Total Cost of the bill.

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: 3

blur-text-image

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions