Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write c assignment statements for the following operations, using appropriate va

ID: 3869933 • Letter: W

Question

Write c assignment statements for the following operations, using appropriate valid identifiers:

1) Conversion of degrees Fahrenheit into degrees Celsius

2) Conversion of degrees Fahrenheit into degrees Rankine

3) Conversion of degrees Celsius into Kelvins

4) Conversion of height from feet and inches into centimeters (hint, use separate variables for feet

and inches)

5) Conversion of weight from pounds into newtons

6) Calculation of mass in kilograms from the weight in newtons, assuming a gravitational

acceleration of 9.807 m/s2

Write c printf statements that do the following:

7) A statement that asks the user to input their height in feet and inches, separating the two

numbers by a space. Display an example as follows:

(For example, if you are 6’2”, type “6 2” at the prompt.)

8) A series of statements that produce a table that shows temperature in different units, similar to

the following:

Temp (DegF) | Temp (DegC) | Temp (DegR) |Temp (K)

-------------+-------------+-------------+----------

(value) | (value) | (value) | (value)

Write c scanf statements that do the following:

9) A statement that takes two integers and stores them each in separate variables

10) A statement that takes a double and stores it in a variable

11) A statement that takes 3 characters and stores them each in separate variables

Explanation / Answer

1) C = ((F-32)*5.0)/9
2) R = F + 459.67
3) K = C + 273.15
4) Cm = (Feet*12+Inch)*2.54
5) Newton = Pounds*4.48
6) Kilo = Newton * 0.102
7) printf("Enter height in feet and inches(separated by a space)");
int f,i;
scanf("%d %d",&f,&i);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote