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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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