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

  Analyze why getty image embraced agile methodologies

Analyze why Getty Image embraced Agile methodologies. Speculate on the result if Agile methodologies were not embraced in this situation.

  Change is an integral part of an organization various

change is an integral part of an organization. various forces drive changes. all changes however are not successful

  Find the logic operation and clearing bits

Find the logic operation and 8-bit data for clearing bits 2 and 4 of an 8-bit number, 7E16, to 0's without changing the other bits.

  Registers and risc processor

A RISC processor has 152 total registers, along with the 12 designated as global registers.

  What are the five basic components of a computer

What are the five basic components of a computer? What is the difference between hardware and software? What are the two phases in writing a program?

  What type of exception would thrown if statement attempted

What type of exception would be thrown if a program statement attempted to access location 0 in an array defined to hold 20 elements?

  How do you display the inode number of a file

How do you display the inode number of a file? How do you ensure that all ordinary files created by you have rw-rw---- as the default permissions?

  Design verilog model-hardware and software driver

Design the Verilog model, hardware, and the software driver that will implement a byte-wide bidirectional data transfer between your processor and four different peripheral devices.

  State the slope of the line of best fit

A Linear Model Example and Technology Tips are provided in separate documents - Describe your topic, provide your data, and cite your source.

  Calculates the wind chill temperature

Write a script file that does the following operations. Using the MATLAB built-in function plot function, plot Twc (in red colour) for o 32 F Ta ?

  Why a website would need to be redesigned

Why do you think it is important to always be planning the next site redesign for a company.

  Write a program that allows any number of values

Write a program that allows any number of values between 0 and 10 to be entered. When the user stops entering values display a frequency distribution bar chart.

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