Read a floating point number representing degrees celsius

Assignment Help Computer Engineering
Reference no: EM132196895

Question :

Write C++ programs to perform the following tasks. In the program descriptions below, example input and output is provided. NOTE: You don't need arrays to solve any of these problems. You should NOT use arrays to solve any of these problems.

stat.cpp: Let the user input a one or more integers, space separated, on a single line (as seen below), then work out and display the sum, average, sum of squares and population variance of the numbers. Remember, you do not need nor should you use an array to solve this problem.

Enter integers: 2 4 1 3 Sum: 10.0 Average: 2.5 Sum of Squares: 30.0 Variance: 1.25

Let the user input a one or more integers, space separated, on a single line (as seen below), then work out and display the largest and smallest values. Remember, you do not need nor should you use an array to solve this problem.

Enter integers: 1 9 3 7 5 6 4 8 2 10 Min: 1

Max: 10

Write a program that prints out the binary, octal, decimal, and hexadecimal representation (respectively) of all unsigned shorts (in order).

If the number is divisible by 3, then also print "Go". If the number is divisible by 5, then also print "GOGOGO". Otherwise, "S" should also be printed. Below is a sample of some of the entries near the middle:

0b1010'0000'0000'0000 0120000 40960 0xa000 GOGOGO 0b1010'0000'0000'0001 0120001 40961 0xa001 S 0b1010'0000'0000'0010 0120002 40962 0xa002 Go 0b1010'0000'0000'0011 0120003 40963 0xa003 S 0b1010'0000'0000'0100 0120004 40964 0xa004 S 0b1010'0000'0000'0101 0120005 40965 0xa005 GOGOGOGO

degrees.cpp: Write a program to read a floating point number representing degrees Celsius, and print the equivalent temperature in degrees

Fahrenheit. Print your results in a form such that the numbers are represented up to two decimal places.

Enter in a temperature in Celsius: 100 100.00 degrees Celsius converts to 212.00 degrees Fahrenheit.
time.cpp: Given as input an integer number of seconds, print as output the equivalent time in hours, minutes and seconds.

Enter in the number of seconds as an integer: 7322 7322 seconds is equivalent to 2 hours 2 minutes 2 seconds.

Reference no: EM132196895

Questions Cloud

Which offer would you advice the pitcher to accept : Suppose you are the agent for a baseball pitcher. Suppose he is offered the following contract by the New York Yankees: a signing bonus of $3,000,000.
Creates objects to store information about two films : The Cassette class should contain an extra public data member called condition (an enum type that can take the values perfect, good, average or poor).
Examine what is the change in total surplus : If the quantity supplied decreases by 100 sandwiches an hour at each price, what is the equilibrium price and what is the change in total surplus?
Company believes that every employee is different : Diversity components that my company currently implements is that company treats each employee as individual, company believes that every employee is different.
Read a floating point number representing degrees celsius : Write a program that prints out the binary, octal, decimal, and hexadecimal representation (respectively) of all unsigned shorts (in order).
Discuss in detail the concept of program inputs : Discuss in detail the concept of Program Inputs, Resources and Environment and relate it back to the subject matter of Policy Implementation and Evaluation.
What are the basic assumptions about the economic way : What are the basic assumptions about the economic way of thinking discussed in Gary Becker's article? Is this the idea of human selfishness?
Two competitors to 3ms product or service : Prepare a 4 page competitive analysis by examining one to two competitors to 3M's product or service.
Describe the marginal and average variable cost curves : Discuss the relation between the marginal and average productivity curves and the marginal and average variable cost curves. Use graphs to illustrate.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create an array of 5 elements and put the numbers

The numbers will be randomly generated. However, I also want to check to see if any of the numbers are repeated.

  List the procedure a system administrator would follow

List the procedure a system administrator would follow for increasing the size of the /home partition by replacing the disk currently being used.

  Diiference between elements are tests of equality

imagine that the only comparisons allowed between elements are tests of equality. Give an algorithm that uses no more than 2n comparisons to determine whether the array A contains a majority element and, if so, find it.

  Create a new volume group called vg

Create a new volume group called vg and add the new 20GB physical volume to it. Create 3 new logical volumes within the volume group each 5GB in size.

  Develop a simple but attractive webpage using css

CE206 - Assignment 1. OBJECTIVE: To develop a simple but attractive webpage using CSS and following HCI criteria. Read the design brief to get a good understanding of the requirements of the client (Head of School). Search the web for webpages that ..

  Plot the average lengths versus m

(a) For a binary source with probabilities P(0) = 0.9, P(l) = 0.1, design a Huffman code for the source obtained by blocking m bits together, m = 1, 2, . . ., 8. Plot the average lengths versus m. Comment on your result.

  Make a modularized body mass index

build a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player.

  Develop a test plan for representing various user groups

Develop a usability test questionnaire per the instructions in the assignment section. Develop a usability test plan for representing various user groups.

  Write a function to input a sound then create a canvas sound

Write a function to input a sound, then create a canvas sound of the same length. Copy samples from the input into the canvas every third position.

  Explain possible control measure for each level of hierarchy

Determine a possible control measure for each of the six levels in the hierarchy of controls, and explain the reasoning behind each choice.

  Perform all semantic checks and execute the program

For this assignment, after parsing you must perform all semantic checks and execute the program. Please note that some of the checks can be performed statically (an empty string constant is an error, and using a variable before setting it is an er..

  What is system speed up when the 8-core cpu is used

What is system speed up (as defined by Amdahl's law) when the 8-core CPU is used in place of the single core CPU?

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