Question: Create a program using Visual Studio 2017 called arithmetic.c that does the following: 1. Prompt for and accept an unsigned short int value 2. Display

Create a program using Visual Studio 2017 called arithmetic.c that does the following:

1. Prompt for and accept an unsigned short int value

2. Display the value of 2 raised to the power of the value input in (1), i.e. display 2n , where n is the value from (1). HINT: Use math.h pow function, some casting would be needed.

3. Prompt for and accept an unsigned short int value, and assume that this is the radius of a circle

4. Display the values of the circumference and area of the circle whose radius is given by (3)

5. Prompt for and accept a float value

6. Display the value of the polynomial 2x3 + 3x2 + 4x + 5, where x is the value read in (5)

7. Prompt for and accept two int values. Display the remainder when the first integer is divided by the second using 1 single operation.

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!