Lab3A - COSC1415/COSC1436 Chapter 3A Lab Assignment Page 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COSC1415/COSC1436 Chapter 3A – Lab Assignment Page 1 of 1 Name Chintu Patel 8001 COSC1415/COSC1436 Lab - Chapter 3A Objective: At the end of this lab you should know how to: 1. write a call to a value-returning function 2. write a prototype for a value-returning function 3. write a function definition (function heading and body) for a value-returning function Lab 3A: Write a program that will prompt the user to enter the amount of a purchase. The program should compute the amount of sales tax and the total purchase price. Declare the sales tax rate as a constant of 0.09 (9 percent) before int main( ) .. The program should display the amount of the purchase, the amount of sales tax (not the tax rate) and the total purchase price. Each part of your output should be labeled so that the reader knows what each number represents. Make sure you include a cout statement at the beginning of your program that says This program written by: your name Your program should include two functions. One function should calculate the amount
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

Lab3A - COSC1415/COSC1436 Chapter 3A Lab Assignment Page 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online