Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do the two programming exercises listed below. You will create a separate C++ program for each of the two exercises using the following naming
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: To have a 35% profit, the flash drive should sell for $10.8 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. A 75 inch tall basketball player is 6 feet 3 inches tall. 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).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started