Description
1. Write a code from last week lab
2. add to your code this as practice
a. The variable sum starts with the value 0.
Add 10 to sum.
Add 15 to sum.
Add 20 to sum.
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 1 to x.
Add 1 to y.
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
Explanation & Answer
Hello , check the world document for the c++ code required in each of the question.The cod...
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
Underground A Human History of the Worlds Beneath our Feet
by Will Hunt
To the Lighthouse
by Virginia Woolf
Frankenstein
by Mary Shelley
Moby Dick
by Herman Melville
Things That Matter
by Charles Krauthammer
Unf*ck Yourself
by Gary John Bishop
The Age Of Light
by Whitney Scharer
The Restless Wave
by John McCain
The Good Earth
by Pearl S. Buck