c++ program
a. Write a program to calculate the amount of wood needed to be purchased in order to create a rectangular wood frame.

b. Prompt the user for two inputs:

(1) One vertical dimension in inches

(2) One horizontal dimension in inches

c. The following should be calculated and outputted in the following order:

(1) The amount of wood needed in inches

(2) The amount of wood needed in feet (with a decimal answer if needed)

d. Save this program as lab02a.cpp

e. Run the program with the following test data:

(1) One vertical dimension in inches = 40

(2) One horizontal dimension in inches = 60

✏️ Tackling a Similar Assignment?

Get a Custom-Written Paper Delivered on Time

Our subject-specialist writers craft plagiarism-free, rubric-matched papers from scratch β€” serving students in Australia, UK, UAE, Kuwait, Canada & USA.

Start My Order β†’Use BISHOPS β€” 25% off first order

2. Second program:

a. Write a program to calculate the final cost of items purchased with a discount applied.

b. Prompt the user for three inputs:

(1) Cost per item

(2) Number of items purchased

(3) Discount rate

c. A tax rate of 7 percent should be defined as a constant and the tax rate variable should be used for calculating the tax amount

d. The following should be calculated and outputted in the following order:

(1) Total cost before discount and before tax

(2) Discount amount

(3) Cost after the discount amount is applied

⏰ Deadline Pressure?

Global Assignment Help Writers Are Online Right Now

Thousands of students at universities worldwide submit with confidence using our expert writing service. Human-written, Turnitin-safe, on time.

(4) Tax amount

(5) Final cost

e. Save this program as lab02b.cpp

f. Run the program with the following test data:

(1) Cost per item = 5.75

(2) Number of items purchased = 10

(3) Discount rate = 15%

D. Verify all results before you submit the lab.

E. For each program, hand in:

1. A copy of the source code for each of the programs.

A copy of the screen print for the output for each of the programs

βœ“ 100% Plagiarism-Free
βœ“ PhD & Master's Writers
βœ“ On-Time Delivery
βœ“ Free Unlimited Revisions
βœ“ APA / Harvard / MLA
βœ“ 256-bit SSL Secure
Verified Academic Expert
This article was written and reviewed by a verified academic professional with postgraduate qualifications. All content is original, evidence-based, and written to assist students in Australia, UK, UAE, Kuwait, Canada, and USA.

Frequently Asked Questions