Write a computer program as a win32 console application

Assignment Help C/C++ Programming
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

 

Reference no: EM13698812

Questions Cloud

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.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program using one while loop

Write a program using one while loop that will read in a sequence of integers guaranteed to be within the inclusive range of 0 through 99,999 from the user

  Create a program that outputs the result of the formula

Create a program that uses the same formula above to output the result; this time, however, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.

  Returns a count of the steps through the sort

Please write a c++ implimentation that returns a count of the steps through the sort. (do not worry about updating count, I will rewrite that segemnt. I need help with writing the shell sort.

  The funtion should take as parameters

Write a function in c ++ that multiplies two functions. the funtion should take as parameters two fraction structures. Then, the function should multiply the two fractions and return the solution as a fraction structure.

  Write two functions to be called by the main program

CSC250 Assignment. Write two functions to be called by the main program. One function is to calculate, in general, a truck's range, that is, the distance the truck can go on one tank of gas (we should probably say fuel. since the bigrig might use ..

  Write a program that asks the user to enter the monthly cost

Write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost ..

  Linked list program

This lab, along with your TA, will help you navigate through designing, implementing, and testing a dynamic linked list.  Linked lists may be used to implement many real world applications. Recall, linked lists are data structures, which represent co..

  Asks the user for the name of an input file and translates

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..

  Write an accessor function to get the angle

Write a friend function to compare the area of a rectangle with sides 12 and 8 to the area of a parallelogram with sides 14 and 18 and an acute angle of 40 degrees. Test it in main, and check the answer by hand.

  Directiontechnical paper memory managementthe intent of

directiontechnical paper memory managementthe intent of this paper is to provide you with an in depth knowledge of how

  Prepare a program that uses the pthread library

Prepare a C/C++ program that uses the PTHREAD library to create threads and mutexes to synchronize them.

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