Question: c# Problem 4 (15 points) Program the sequential steps detailed in the pseudocode below. No data validation is required; you may assume the user will
Problem 4 (15 points) Program the sequential steps detailed in the pseudocode below. No data validation is required; you may assume the user will input valid data. 1. Declare a float constant initialized to 3 to represent the number of input values received from the user. 2. Prompt the user for 3 integer values 3. Use the Convert() method to convert strings to numbers. 4. Calculate the sum, product and average and store each result in a separate variable 5. Substitute variable values in the output string using placeholders (not string interpolation). 6. Don't forget to use the appropriate format strings. a Sum and product must display with this format: XXX.XXX b Average must display with this format: XXX.XXX.XX lights indicate user input. Your output should look like this. The yellow high *** PROBLEM 4 *** Enter number 1: 10 Enter number 2: 20 Enter number 3: 30 Sum = 60, Product = 6,000, Average 20.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
