You are on page 1of 1

//Program Name:Painting Xperts' Invoice Generator

//Purpose:To create an invoice generator


//Author:Manavjot Singh
//Date last modified:May 12,2021

Name- Manavjot Singh


Student Id- 0765985

Task#2

Start

Display "Welcome To The Painting Xperts' Invoice Generator"

//Declare Variables

Declare Numeric totalHours //the number of hours


Declare Numeric hourCharges //charges per hour
Declare Numeric costBeforeTax //total cost before tax
Declare Numeric costAfterTax //total cost after tax

//Declare Constants

Declare constant CHARGES_PER_H = 30


Declare constant TAX_CHARGES = -0.15

//Get user input

Display "What is the number of hours"


Input totalHours
Display "What are the charges per hour"
Input hourCharges
Display "What is the total cost before tax"
Input costBeforeTax
Display "What is the total cost after tax"
Input costAfterTax

//calculate the total cost


costBeforeTax=totalHours*CHARGES_PER_H
costAfterTax=[(totalHours*CHARGES_PER_H)+TAX_CHARGES]

//Display Output
Display"The charges before adding tax is $"+costBeforeTax+"and after tax is
$"+costAfterTax+"."

//Display thank you/stopping


Display "Thank you for using our invoice generator program"

End

You might also like