Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE THE PROGRAM IN C PLEASE Write a program that asks the user for the cost of his last purchase and then calculate the GST

image text in transcribedWRITE THE PROGRAM IN C PLEASE

Write a program that asks the user for the cost of his last purchase and then calculate the GST (7%) and PST (8%) and total amount paid and display this on the screen. The amounts shown should be in dollars and cents. (Two decimals shown). Use \t, and %% to produce the printout. Make your result look EXACTLY as shown below. Make sure the decimal point lines up correctly. Ask the user to enter the cost of his purchase BEFORE printing what's shown below. After getting user input CLEAR THE SCREEN using the command

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago