Question: A number expressed in scientific notation is represented by its mantissa (a fraction) and its exponent. Write a function that reads a character string that

A number expressed in scientific notation is represented by its mantissa (a fraction) and its exponent. Write a function that reads a character string that represents a number in C++ scientific notation and stores the number in a struct with two members. Write a function that prints the contents of this struct as a real value. Also write functions that compute the sum, product, difference, and quotient of two numbers in scientific notation stored in two struct arguments. (Hint: The string -0.1234E20 represents a number in scientific notation. The fraction -0.1234 is the mantissa and the number 20 is the exponent).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!