Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please make it really simple. Will give good ratings. Conversion Program Exercise Instructions: Write a C++ program that will input from the console screen: 1.
Please make it really simple. Will give good ratings.
Conversion Program Exercise Instructions: Write a C++ program that will input from the console screen: 1. A whole number 2. A unit of measurement from the following set: TB, GB, MB, KB, B The program will output the equivalent number of bits. Allow users to continue to input until they indicate that they want to stop Sample Run: Input a whole number followed by a unit of neasurenent (TB, GB. MB, KB. B) xample: 1 KB kb Input a valid whole number and unit of measurement Input a whole number followed by a unit of neasurenent (TB, GB, MB, KB, B) xample: 1 KB KB 16384 b o wish to do another conversion? Type Y or y to continue Input a whole number followed by a unit of neasurenent (TB, GB, MB, KB, B] xample: 1 KB 796093822208 b o wish to do another conuersion? Type or y to continue ress any key to continue Notes: 1. 2. A blank space will separate the whole number from the unit of measurement. If the user does a. not input an appropriate unit of measurem ent: Output an error message Allow the user to re-input b. For this exercise assume that the base is 1024 (not 1000). Kilobyte Reference: 3. n.wikiStep 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