Reference no: EM13698812
Program: Write a computer program as a Win32 console application in C to take a depth (in kilometers) inside the earth as input data; then evaluate and display the temperature at this depth in degrees Celsius and degrees Fahrenheit. The relevant formulas are:
Celsius = 10 (depth) + 20 (Celsius temperature at depth in km)
Fahrenheit = 1.8 (Celsius) + 32
* The name of your source program shall be p2.c and that of your executable program shall be p2.exe.
* Your program shall receive information from the user using the keyboard.
* Include two functions in your program, as follows:
* Function celsius_at_depth should compute and return the Celsius temperature at a depth measured in kilometers.
* Function Fahrenheit should convert and return a Celsius temperature to Fahrenheit.
* After your program has read the input data, it shall write the following lines as output to the screen:
For a depth of <fill in data> kilometers, the temperature is <fill in data> degrees Celsius, and <fill in data> degrees Fahrenheit.
You need to provide the code for Win32 console application
Predicate function play in an attribute grammar
: What role does a predicate function play in an attribute grammar and what role does a lookup function play in an attribute grammar?
|
Find the standard sop
: Find the standard SOP (sum of product) and POS (product of sum) expression of the subsequent Boolean function. F(A,B,C,D) = A(B' + CD') + A'BC'
|
What is the probability that a dishonest claimant
: What is the probability that a dishonest claimant is falsely verified as an authentic entity, i.e., what is the probability that the dishonest claimant responds correctly to all 11 challenges?
|
Write a program that gives a prompt to the users
: Write a program that gives a prompt to the users, asking for an integer n. It then prints out a random permutation, on one line , of 1,2,.......n separated by spaces or lines.
|
Write a computer program as a win32 console application
: Write a computer program as a Win32 console application in C to take a depth (in kilometers) inside the earth as input data; then evaluate and display the temperature at this depth in degrees Celsius and degrees Fahrenheit. The relevant formulas a..
|
Explain the reduced form of methylene blue is often used
: Question- The reduced form of methylene blue is often used to indicate the presence of oxygen contaminants in anaerobic systems. Explain how this species can be used as an indicator in these systems. Be sure to include any 1/2 reactions involved.
|
Find a popular story and write it into an array
: Find a popular children's story and write it into an array.
|
Why the reaction was performed in an acidic environment
: Question- Use the equilibrium expressions below to explain why the reaction in this experiment was performed in an acidic environment.
|
Create a guessing game
: Create a guessing game where the user enters an integer between 1 and 10.
|