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

  What does the close procedure do

What does the Close procedure do? What could happen if you forget to close a file before your program terminates?

  Database saves the state of washington medicaid dollars

Database saves the state of Washington Medicaid dollars, Consider a degree program or your selected industry

  Write a function to mirror along the diagonal

Write a function to mirror along the diagonal from (0, height) to (width, 0). Write a function to mirror along the diagonal from (0, 0) to (width, height).

  Write a query that returns the cuisine type of restaurant

Write a query that uses the index created in part b to return all the restaurants containing the term "Rabbit" in their name.

  What would the new tree look

The Binary Tree is one of the best ways to organize data while you need fast access. For this assignment, we will organize a list of names and perform various operations on those names.

  What is name of a virus that changes itself when it spreads

What is the name of a virus that changes itself when it spreads? Which of the following options is a useful defense against database attacks?

  Conduct your own research on instruction set architecture

Conduct your own research on Instruction Set Architecture (ISAs). Look over how they process address memory. What criteria are important to you? Why?

  Build appropriate functions for these classes

A CollegeCourse class includes fields representing department, course number, credit hours, and tuition. Its child, LabCourse, includes one more field that holds a lab fee charged in addition to the tuition.

  How the second decision is made entirely

When a calculation could be performed once before entering a loop, it is inefficient to place the calculation within the loop.

  Write down a 200 word paper which explains the distinctions

write down a 200 word paper which explains the distinctions of data and information and in short describe the process a

  Talk about a particular collection of things that they own

Write a C program that asks the user for information about a particular collection of things that they own.

  Computer rendering of stochastic models

Prepare a slideshow on Computer rendering of stochastic models

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