Question
C program
Thanks
The identifier is the name of a variable. Invent a valid variable identifier for each of the following pieces of data, and write a declaration statement, assuming all variables are double floating point values: 1) A temperature reading in units of degrees Fahrenheit 2) A distance measurement in units of miles 3) Length, height, and width measurements in units of meters (3 identifiers) 4) A temperature reading in units of degrees Rankine 5) A measure of force in units of pounds 6) A measure of force in unites of newtons 7) A measure of density in units of kg/m3 8) A measure of mass in units of kg 9) A measure of volume in units of m Write C assignment statements for the following mathematical equations, using the previous identifiers 10) Volume-lengthheight*width 11) Distance length/1609.3 12) Temperature(in degrees Rankine)-45 13) Force (in pounds)-(1/4.4482216)*Force (in newtons) 14) Density Mass/Volume 9.67 +Temperature (in degrees Fahrenheit)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Name

Identifier Name

Declaring Statement

Temperature

double_temperature_fr

double double_temperature_fr

Distance

double_dist

double double_dist

Length, Height, Width

double_length

double_height

double_width

double double_length

double double_height

double double_width

Temperature

double_temperature_ra

double double_temperature_ra

Force

double_force_pound

double double_force_pound

Force

double_force_newton

double double_force_newton

Density

double_density

double double_density

Mass

double_mass

double double_mass

Volume

double_volume

double double_volume

#include<stdio.h>

#include<math.h>

main()

{

                double                 double_length,double_height,double_width,double_volume,double_distance,double_temperature_ra,double_temperature_fr,double_force_pound,double_force_newton,double_density,double_mass,double-volume;

                printf(“Enter the value of length,height,width”);

                scanf(“%e%e%e”,&double_length,&double-height,&double_width);

                printf(“Enter the value of temperature in fahrenheit”);

                scanf(“%e”,& double_temperature_fr);

                printf(“Enter the value of force in newton”);

                scanf(“%e”,& double_force_newton);

                printf(Enter value of mass,volume);

                scanf(“%e%e”,& double_mass, double_volume);

               

                double_volume= double_length* double-height* double_width;

               

                double_distance= double_length/1609.3;

               

                double_temperature_ra=459.67+ double_temperature_fr;

                double_force_pound=(1/4.4482216)* double_force_newton;

                double_density= double_mass/ double_volume;

               

                printf(“Volume=%e”, double_volume);

                printf(“Distance=%e”, double_distance);

                printf(“Temperature=%e”, double_temperature_ra);

                printf(“Force in pound=%e”, double_force_pound);

                printf(“Density=%e”, double_density);

}

Add a comment
Know the answer?
Add Answer to:
C program Thanks The "identifier" is the name of a variable. Invent a valid variable identifier...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (1) Steady state is when a. All process variables Temperature (T),Pressure(P), volumetric flowrate and mass do...

    (1) Steady state is when a. All process variables Temperature (T),Pressure(P), volumetric flowrate and mass do not change with time (minor fluctuations) b. Temperature only changes with time c. Only volumetric flowrate and mass do not change with time d. Only Temperature (T), Pressure (P) do not change with time. (2)Temperature: a. b. e. d. An interval of1 Celsius degree or Kelvin therefore contains 8.1 Fahrenbeit or Rankine degrees An interval of 1 Celsius degree or Kelvin therefore contains 459.67...

  • Problem Set 3: Unit Conversions and Density EXTRA CREDIT-up to 4 points A sheet of standard typing paper is 8.5 inc...

    Problem Set 3: Unit Conversions and Density EXTRA CREDIT-up to 4 points A sheet of standard typing paper is 8.5 inches by 11 inches. What is the area of a length x width) sheet of paper in cm2? (Area The distance between two carbon atoms in a piece of diamond is 0.154 nm. What 2 is this distance in inches? What is the volume in milliliters of 1.0 pints of cream? 3. The average density of whole milk is 1.034...

  • ng Density Lab 18 - ww Floal bivi Pre-Lab Questions Inicio: Whats the equation for finding...

    ng Density Lab 18 - ww Floal bivi Pre-Lab Questions Inicio: Whats the equation for finding the volume of a rectangular solid 2. A od measures 31 cm x 2.82cm X 8.45 . What is to volume Show work and include uris 3. What is the formula for the calculation of de s ig mass and volume 4. What is the formula for calculating thickness when given the volume of a solid and its length and width? 5. What is...

  • The following is not one of the basic units of the SI system: meter mole gram...

    The following is not one of the basic units of the SI system: meter mole gram second ampere Currently, the total number of known elements is: 83 90 92 102 118 126 238 294 Concrete contains an aggregate, consisting of silicon dioxide (SiO_2) in the form of sand or gravel, together with cement, which is a combination of calcium silicates and alumni silicates. Accordingly, concrete can be classified as An element A compound A homogeneous mixture A heterogeneous mixture None...

  • Rule Part 1: Measurement of Volume and Density: - Imm Data: Fill in your measurements in...

    Rule Part 1: Measurement of Volume and Density: - Imm Data: Fill in your measurements in the table below. Be sure to indicate the units for each measurement. (Hint: a given object should have the same dimensions measured with any tool. If this is not the case, check your units) 7 + NLAH WWA WA Inner Outer Table 2 Measurement of Assorted Objects length (mm) Width/ mm height mm Diameter uncertainty u m (mm) Measured using Ruler Rectangular 49 30...

  • Air a. What is the volume of air in the room where you are right now?...

    Air a. What is the volume of air in the room where you are right now? (You can measure the length, width, and height of the room with a measuring tape, or you can estimate these quantities. Just make sure you convert your answer to SI units.) b. What is the temperature in this room? (in SI units) c. Look up the current barometric pressure in your area, and convert it to SI units. d. Use the information from steps...

  • (1) Suppose you lift a stone that has a mass of 5.3 kilograms off the floor...

    (1) Suppose you lift a stone that has a mass of 5.3 kilograms off the floor onto a shelf that is 2 meters high. How much work have you done? Joules   (2) Suppose you lift a laptop that weighs 3.2 pounds off the floor onto a shelf that is 4 feet high. How much work have you done? foot-pounds   (3) The force on a particle is described by 9x^3−1 pounds at a point xx feet along the x-axis. Find the...

  • I need help solving these questions,please don’t know how to solve it by using matlab.!

    i need help solving these questions,please don’t know how to solve it by using matlab.! Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *base *height, where the base is length *width. Prompt the user to enter values for the length, width, and height, and then calculate the volume of the pyramid. When the user enters each value, he or she will then also be prompted to...

  • 1. Newton's Universal Law of Gravitation can be written as F = G*M1*M2/r^2 where M1 and...

    1. Newton's Universal Law of Gravitation can be written as F = G*M1*M2/r^2 where M1 and M2 are masses of objects in kilograms (kg), r is the distance between the objects in meters (m), and F is the magnitude of the force the objects exert on each other in units of kilograms times meters per second squared (kg*m/s^2). Determine the units of the universal gravitational constant, G. In your answer, use only units of kg, m, and s. Write any...

  • 324 More Length Meters About the length meters, if you think you have already known it...

    324 More Length Meters About the length meters, if you think you have already known it all... You may handle these following instruments with ease. 35 NO 30 25 SU 任务点 章节 More length readings 1.[10 The reading of this Vernier micrometer is in. 10 VERNIER SCALE THIMBLE SCALE 0.000 0 SLEEVE SCALE 0 1 2 20 0.206 0.025 15 ABEI0226 Hint: The bigger division on the sleeve scale is 0.1 inch. 1: 2: 3: 4: 5 2.[] The reading...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT