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.
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.
|