question archive Chapter 2 Lab Do the two programming exercises listed below

Chapter 2 Lab Do the two programming exercises listed below

Subject:Computer SciencePrice: Bought3

Chapter 2 Lab

Do the two programming exercises listed below. You will create a separate C++ program for each of the two exercises using the following naming conventions: yourlastname_Ch2lab.n.cpp where “n” is the exercise number.

1) Flash Drive Price - An electronics company makes 64 gigabyte USB flash drives that cost them $8.00 apiece to produce. Write a program to determine how much the company should sell them for if it wants to make a 35 percent profit. Display the result on the screen. Output should look like this:

2) Basketball Player Height –The star player of a high school basketball team is 75 inches tall. Write a program to compute and display the height in feet/inches form. Hint: Try using the modulus and integer divide operations.

Your programs should conform to the Programming Style Requirements as listed in Blackboard under Course Content. In addition, all output should be labeled appropriately (Ex. Number of slices are: nn). Turn in your 2 source (.cpp) files to Blackboard (be sure to attach all files before pressing SUBMIT).

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE