[solved] – Question 70289
how would I use stream reader to read a text file from user input (which was stream writer)?
Expert Answer
[solved] – Question 7029
write c++ program using loop to repeat word enter by user as number of its character?
Expert Answer
[solved] – Question 7030
write c++ program using loop to reverse the order of entered word by the user
Expert Answer
[solved] – Question 70327
Make a reflection paper about The rise of “worse is better” by Richard Gabriel composing of introduction, body and conclusion. The total words should have at least 750 words.
Expert Answer
[solved] – Question 70365
Write a program that reads in a list of integers from the user until the user enters the value 0 as
a sentinel. When the sentinel appears, your program should display the largest and second largest
value in the list, e.g. if user enter values 13, 17, 34, 19, 33,0 then program output should say the
largest value was 34 and second largest value was 33. You should also make sure that the program
works correctly if all the input values are negative. not using arrays
Expert Answer
[solved] – Question 70366
Every positive integer greater than 1 can be expressed as a product of prime numbers. This
factorization is unique and is called the prime factorization.For example, the number 60 can be
decomposed into the factors 2 ∗ 2 ∗ 3 ∗ 5, each of which is prime. Note that the same prime can
appear more than once in the factorization. Write a program to display the prime factorization of
a number n e.g. if a user enter enter 60 as an input then program should print 2 ∗ 2 ∗ 3 ∗ 5 as an
output.
Expert Answer
[solved] – Question 70380
How are static variables that are data members of a class initialised??
Expert Answer
[solved] – Question 70389
4.Design a program that calculates and prints the payroll amounts for an employee. It accepts the hourly rate and number of hours worked. It calculates gross pay, net pay. Overtime pay is based on time-and-a-half. Income tax is simply based on gross annual amounts (0—$6000 = 0%; $6000—9000 = 15%; $9000—12000 = 18%; $12000 — 18000 = 21%; $18000—21000 = 24%; $21000—25000 = 27%; $25000—30000 = 30%; >$30000 = 33%) Social security tax is 8.9% of gross pay.
P.S.
Annual salary is multiplication of ]]the weekly salary times 52 which is the number of weeks in a year,7
Expert Answer
[solved] – Question 70391
print (“Enter 1 to calculate the area of a circle”)
print (“Enter 2 to calculate the surface area of a sphere”)
print (“Enter 3 to calculate the volume of a sphere”)
print (“Enter 4 to quit”)
Assuming the choice is 1-3, ask the user for the radius. If the user enters a string that cannot be interpreted
as a number, display the error message: Radius needs to be a number. If the user enters a nonpositive
number, display the error message: The radius has to be positive. Once you have a
positive radius, for choice 1, calculate the area of a circle by calling a function that calculates and returns the
area. For choice 2, calculate the surface area of a sphere by calling a function that calculates and returns
the surface area. For choice 3, calculate the volume of sphere by calling a function that calculates and
returns the volume. Your program should continue to display the menu, error check, and make calculations,
until the user enters choice 4.
Expert Answer
[solved] – Question 70395
Airport parking violation bureau wants you to Design a program to compute fines for parking violations. There are four types of violation: type A carries a fine of $10, type B carries a fine of $20, type C carries a fine of $30, and type D carries a fine of $50. The program should ask for the number of type A violations, the number of type B violations, and so on. If the number of type A, B, or C violations exceeds 10, impose an additional fine $50 for each category that exceeds 10. If the total number of type A, B, or C exceeds 20 but none of types A, B, or C individually exceeds 10, impose an additional fine of $75. If the number of type D violations exceeds 3, impose an additional fine of $20 for each type D violation over three. The program should print the total fine for the person.
Expert Answer

