Engineering C source code

posted by .

Prompt the user for the inner and outer diameter and thickness of the washer to be entered in cm. Then prompt for the material density in grams per cubic cm (g/cm^3) and the number of washers in the batch. Finally, print out the expected weight in kg. Make sure that 3 digits after the decimal are always displayed for your results.

When executed, it should say:
Welcome to the Washer Weight Batch Program.
Please enter the following washer information.

Inner diameter in cm: 1.2
Outer diameter in cm: 2.4
Thickness in cm: 0.1
Material density in g/cm^3: 7.87
Quantity in batch: 1000

The expected weight of the washer batch is 2.670 kg.

  • Engineering C source code -

    There is no question here.

    Are you having a problem with the code you have written?

  • Engineering C source code -

    I am not exactly sure what directives I should use. I have the stdio.h and have defined pi.

    Also I am not sure of the correct terms to float such as the inner and outer diameter and the thickness.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. AP U.S. History(APUSH)

    I need help with understanding this APUSH DBQ prompt! Heres the prompt: "To what extent did economic and political developments as well as assumptions about the nature of women affect the position of American women during the period …
  2. Maths

    Hi im doing measurement at skool at the moment and i cant quite ork out some questions. Can someone please help!! A metal washer has an external diameter of 2cm and an internal diameter of 1cm. A) How many washers can be cut from a …
  3. Java

    Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include error checking so that the program continues to prompt the user for a number until the user's entry is between 1 and 5, inclusive. Once …
  4. C++ program

    Create a source code that will prompt for recive and total a collection of payroll amounts entered at the terminal untill a sentinel amount of 999 is entered. Here is what i have so far i know not much but am not that great at this …
  5. C++ program

    Create a source code that will prompt for recive and total a collection of payroll amounts entered at the terminal untill a sentinel amount of 999 is entered. Here is what i have so far i know not much but am not that great at this …
  6. programming MIPS ask

    Write a MIPS assembly language program that will cover the following steps: Prompt the user to enter a first integer named i1 Prompt the user to enter a second integer named i2 Compute i1+i2-200 Print the value of the result Repeat …
  7. java.please help

    Write a Java program that prompts the user for a string. If the string entered by the user does not start with Hello and does not end with a digit, print incorrect and re-prompt the user. Otherwise, print Thank you.
  8. Multimedia

    Not sure if you will get this right away.. but here is the question... Prompt the user for their name and then prompt the user for a number between 1 and 12. After getting the input, you will display the user’s name and then display …
  9. Computer Science/Pseudo Code Python

    Hi, I'm confused about an assignment. I'm not sure what to do and would like some help. An example: Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers. Pseudo code: Prompt user …
  10. Computer Science

    Write a program that Will prompt a user to enter his/her name and number.use a while loop that will display the user name times the entered number

More Similar Questions