Question: Question 1 (10 points) Write a C+t program that will find the product of 7 valid data values entered by the user, using a loop

 Question 1 (10 points) Write a C+t program that will find

Question 1 (10 points) Write a C+t program that will find the product of 7 valid data values entered by the user, using a loop structure. Your program should ignore any negative and zero values entered in the calculation. Provide a test run for the following sequence: -6, 4, 5, 0, 1, 10, -3.1, 10, 2, 5. A positive number is considered to be valid data. Format Manipulators: setw ( ) setprecision ( ). setiosflags(ios: showpoint), setiosflags(ios fixed), setiosflags(ios:scientific), setiosflags(ios: left), setiosflags(ios: right). Common Math Functions: abs(a), pow (a, b), squt (a), sin (a), tan (a), cos (a), log10(a), exp (a) Escape Sequences: b, If, In, r, I, V, " Note: All variables must be declared properly before they can be displayed and the results should be copied to the program as a block comment. The program should display adequate information about the nature of the program and the calculated results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!