Where c is the temperature in degrees celsius

Assignment Help C/C++ Programming
Reference no: EM13694504

Question: Write a program that takes as input a depth in kilometers inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit. The relevant formula is

C=10d+20

where C is the temperature in degrees Celsius and d is the depth in kilometers (a positive number). The temperature in degrees Fahrenheit is

given by F= (9/5)C+32

Your program should include two functions. Function celsius_at_depth should compute and return the Celsius temperature at a depth given in kilometers. Function fahrenheit should convert a Celsius temperature to Fahrenheit.

Your program should interact with the user in exactly this manner:

Enter depth in kilometers=> 15.4

The temperature is 174.0 degrees C or 345.2 degrees F.

Make this program using java programming. Make this program in easy way.

Reference no: EM13694504

Questions Cloud

What is meant cisc machines versus risc machines : Discuss what is meant CISC machines versus RISC machines.
Various methods of implementing rsa : Technical Guidelines: Study various methods of implementing RSA, a public-key cryptographic algorithm. Write time functions to help you conduct timing measurements for RSA.
Calculate the body mass index : Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.
Write a short memo to the vice-president of production : Formulate a linear program that can be used to determine the optimal product mix for the chemical company. Specifically, do the following: Identify the decision variables (make sure that you specify the units for these variables). Specify the obje..
Where c is the temperature in degrees celsius : Write a program that takes as input a depth in kilometers inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit.
How long does a paged memory reference take : how long does a paged memory reference take - What is the effective memory reference time?
Sum of two squares of natural numbers : The formula "x is a sum of two squares of natural numbers" can be written as ?y?z(x = y × y + z × z).
Write a program that will process the data file : Write a program that will process the data file to read the file and calculate the number of assistants and the average salary and the number of associates and the average salary
Can an s-r flip flop be made with a t flip flop : Can an S-R Flip Flop be made with a T Flip Flop (and some other logic)? If YES, then how? Please explain the process.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Aims the main purpose of the assignment is to let you

aims the main purpose of the assignment is to let you perform operations on les manipulate structures manipulate

  Write a program using the class as defined

Write a program using` the class as defined below. Put the class definition in a separate header file, and put all the functions' code in a separate Resource file.

  Set up a user terminated loop

Write a program in c language that finds a maximum of three numbers. Input consists of the three numbers. Output should list the three numbers and display the largest of the three.

  Elements that must be included in a loop

What are the three elements that must be included in a loop in order for the loop to successfully perform correctly - What will happen if these statements are not included? Provide examples.

  Design an algorithm to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Local diner that allows customers to see the diner''s menu

Design a program to be used for a small local diner that allows customers to see the diner's menu and then make their meal selections using the program.The program will also calculate and print an itemized bill.

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Write a function named digit_name

Write a function named "digit_name" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.

  Write a small program to simulate a raffle

Write a small program to simulate a raffle (a gambling game) for a group with 100 members. You can simply identify each member with a no-duplicated ID numbers from 01 to 100. A number ticket with a positive 4-digits integer number will be randomly cr..

  Write a for loop that adds the integers

Assume the int variables i , lo , hi , and result have been declared and that lo and hi have been initialized. Write a for loop that adds the integers between lo and hi (inclusive), and stores the result in result .

  Write a program to determine how long (sec.)

Using the v 2  form of drag, write a program to determine how long (sec.) and how far (m) a 150 gram ball whose radius is 3.5cm would fall before it reached 75% of its terminal velocity. Assume ball falls in air whose density is 1.21 kg/m 3 , has a d..

  Generate the output below using the function

Make a C program that will generate the output below using the function that will pass the value into the function.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd