# Account Balance and Sales Tax Code C++ Programming Assignment

Account Balance and Sales Tax Code C++ Programming Assignment

1. Write a code from last week lab

a. The variable sum starts with the value 0.

Display the value of sum on the screen.

b. The variable x starts with the value 0.

The variable y starts with the value 5.

Add x and y, and store the result in y.

Display the value in y on the screen.

c. The variable j starts with the value 10.

The variable k starts with the value 2.

The variable l starts with the value 4.

Store the value of j times k in j.

Store the value of k times l in l.

Add j and l, and store the result in k.

Display the value in k on the screen.

d. The variable a starts with the value 1.

The variable b starts with the value 10.

The variable c starts with the value 100.

The variable x starts with the value 0.

Store the value of c times 3 in x.

Add the value of b times 6 to the value already in x.

Add the value of a times 5 to the value already in x.

Display the value in x on the screen.

Last Week lab which is this one:

Take a piece of paper and solve this Mathematically 1. Account Balance

Write high-level and detailed psuedocode for a program that calculates the current

balance in a bank account. The program must ask the user for

• The starting balance

• The total dollar amount of deposits made

• The total dollar amount of withdrawals made

Once the program calculates the current balance, it should be displayed on the screen.

2. Sales Tax

Write high-level and detailed psuedocode for a program that calculates the total of a

retail sale. The program should ask the user for

• The retail price of the item being purchased

• The sales tax rate

Once these items have been entered, the program should calculate and display

• The sales tax for the purchase

• The total of the sale