Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a C program fro the above question using data supplied from the first question. 5 T his program multiplies two integers together and prints

image text in transcribedimage text in transcribed

write a C program fro the above question using data supplied from the first question.

5 T his program multiplies two integers together and prints the product 7 #define CRT SECURE NO WARNINGS 9 #include 10 11 int main() 12 13 14 15 16 17 18 19 int number1; int number2; int product; printf("Enter an integer: "); scanf("%d", &number1); printf("Enter a second integer: "); scanf("%d", &number2); product -number1 number2; printf("The product of %d and %d is %d . ", return e; 20 21 number1, number2, product); 23 1. Modify the multiplication program done in class (version that prompts user to enter two numbers from the keyboard) as follows: Change declarations so that all variables are doubles. In addition to the variables numberl and number2, you should allow for variables for a third input number (number3), and also for product, quotient, and average instead of just one variable for result. Prompt the user and read in values for the three numbers using appropriate conversion specifiers for doubles. Calculate the product of the three numbers, the quotient of the sum of the first two numbers divided by the third number, and the arithmetic average of the three numbers. Print labeled results using f format with two decimal digits for quotient and average and e format with 3 digits after the decimal point (when in e format) for the product

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Why would a high HDL level result in a low LDL level?

Answered: 1 week ago

Question

How would you assess the value of an approach like this?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago