3. Scientific notation is a way to express numbers that are too large in a more convenient decimal form. Here is an example of a number written in scientific notation: 3.926*10^4 --> 39260 Write a program that given a positive non-zero whole number outputs the number in scientific notation. Input from the keyboard a pair of numbers B and E, where B is the base number and E is the power of 10. B is greater than one but less than 10, and E will be in the range of [-10,10]. Assume proper input. Output to the screen the result rounded to two decimal places using the formatting shown below. Trailing zeros after the decimal point is required. Finally, ask the user if he/she wishes to run the program again (check case). Refer to the sample output below. Sample Run: Enter the base number: 4.296 Enter the power of 10: 3 4.296 * 10^3 = 4296.00 Run again (Y/N): y Enter the base number: 3.8 Enter the power of 10: -2 3.8*10^-2 = 0.04

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

C++

3. Scientific notation is a way to express numbers that are too large in a more convenient decimal form.
Here is an example of a number written in scientific notation:
Write a program that given a positive non-zero whole number outputs the number in scientific notation.
Input from the keyboard a pair of numbers B and E, where B is the base number and E is the power of
10. B is greater than one but less than 10, and E will be in the range of [-10,10]. Assume proper input.
Output to the screen the result rounded to two decimal places using the formatting shown below.
Trailing zeros after the decimal point is required. Finally, ask the user if he/she wishes to run the
program again (check case). Refer to the sample output below.
Sample Run:
3.926*10^4 --> 39260
Enter the base number: 4.296
Enter the power of 10: 3
4.296*10^3 = 4296.00
Run again (Y/N): y
Enter the base number: 3.8
Enter the power of 10: -2
*
3.8 10^-2 = 0.04
Transcribed Image Text:3. Scientific notation is a way to express numbers that are too large in a more convenient decimal form. Here is an example of a number written in scientific notation: Write a program that given a positive non-zero whole number outputs the number in scientific notation. Input from the keyboard a pair of numbers B and E, where B is the base number and E is the power of 10. B is greater than one but less than 10, and E will be in the range of [-10,10]. Assume proper input. Output to the screen the result rounded to two decimal places using the formatting shown below. Trailing zeros after the decimal point is required. Finally, ask the user if he/she wishes to run the program again (check case). Refer to the sample output below. Sample Run: 3.926*10^4 --> 39260 Enter the base number: 4.296 Enter the power of 10: 3 4.296*10^3 = 4296.00 Run again (Y/N): y Enter the base number: 3.8 Enter the power of 10: -2 * 3.8 10^-2 = 0.04
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY