Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9:05 11 5G XCOSC1436_Assignment... Q 2 COSC 1436, Dr. Pershwitz Assignment Sa: 9 points Write a Program: Compute an average of integer values Please use

image text in transcribed
image text in transcribed
image text in transcribed
9:05 11 5G XCOSC1436_Assignment... Q 2 COSC 1436, Dr. Pershwitz Assignment Sa: 9 points Write a Program: Compute an average of integer values Please use Assignment 3b as your starting point. You should take into account prading comments made for you to avoid the same deductions for this assignment Ask the user to enter a number of values to average in the range from to 10 a loop to make sure the entered number is within the range Output an error message any time an invalid number is entered Once a valid number of values is entered as the user to input each value Enumerate the values being asked for see the output sample. Your goal is to calculate their average and output it to the console Your program should have the following . You should have commentines at the top descretion of the program authot, section, and date. (1 point) Create your variables, use the appropriate type, name them appropriately came back notation and remember to not leave the uninitialized. 11 point . You should define at least 3 named constants for more if you wish but this is not a requirement). Identify the best candidates 2 points . Ask the user to enter a number of valves and read it from the console an invalid number is entered output an error message and ask to entera number again. 2 points . Once you get a valid number of values ask for each value individually Enumerate each value you are asking for 12 points Calculate the average and output it to the console. Your result should have three digits after the decimal point. 1 point Your output should look similar to the following First run Internet of er 103 Invalid put! Enter uber der 2 10:12 Invalid Input Enter a number of value to 10 Enter value 1: Intervale 2: Enter Wald Enter value 123 Eva G Second run Enter tomber of value from to 10: Encer value 1: 41 Enter value 2: 55 Este value 3:22 Dashboard Calendar To Do Notifications Inbox 9:07 ut 5G X 1436 Code Assignment... Programming I Code Assignment Documentation format One on tott It wing aso tutte Preferred ting to 11 Your document will have tware at the Console Output/Tusting site in the Bursa Code Section Dample Ansignment prestation Format Procedure for copying Output from the conte intotapad Ice Crew 2.- tedy Site the Procedure for copying the code from ding window seat det 1. het in the died. 3. Ato i test the 1-copy tie te that Previous Next Dashboard Calendar To Do Notifications Inbox 9:05 11 5G XcosC1436_Assignment... Q & errores an invalid number is entered output an error message and ask to entera number again. (2 points) . Once you get a valid number of values ask for each value individually Enumerate each value you are asking for. (points) Calculate the average and output it to the console. Your result should have three digits after the decimal point point) Your output should look similar to the following First run thereumber of astron to Invalid ut Entramber of values foto to: 11 Envand input Encer amber of value front IDEE interval ne value the value 411 Intervisi Intervale ! The average 12.67 Second run Beraber troto 1014 Enter 2:55 intervale 113 Enter valve The avere 2.250 Notes: When you run your program you should test both sides of the valid range for the number of values. You should also include two runs with different numbers of values to average. You don't have to test the valid range the second time. Insufficient console output is a point deduction Pay attention to where you create and how you into your res Unsafe code bal point deduction Comment your code Uncommented codes 1-point deduction D Dashboard Calendar To Do Notifications Inbox 9:05 11 5G XCOSC1436_Assignment... Q 2 COSC 1436, Dr. Pershwitz Assignment Sa: 9 points Write a Program: Compute an average of integer values Please use Assignment 3b as your starting point. You should take into account prading comments made for you to avoid the same deductions for this assignment Ask the user to enter a number of values to average in the range from to 10 a loop to make sure the entered number is within the range Output an error message any time an invalid number is entered Once a valid number of values is entered as the user to input each value Enumerate the values being asked for see the output sample. Your goal is to calculate their average and output it to the console Your program should have the following . You should have commentines at the top descretion of the program authot, section, and date. (1 point) Create your variables, use the appropriate type, name them appropriately came back notation and remember to not leave the uninitialized. 11 point . You should define at least 3 named constants for more if you wish but this is not a requirement). Identify the best candidates 2 points . Ask the user to enter a number of valves and read it from the console an invalid number is entered output an error message and ask to entera number again. 2 points . Once you get a valid number of values ask for each value individually Enumerate each value you are asking for 12 points Calculate the average and output it to the console. Your result should have three digits after the decimal point. 1 point Your output should look similar to the following First run Internet of er 103 Invalid put! Enter uber der 2 10:12 Invalid Input Enter a number of value to 10 Enter value 1: Intervale 2: Enter Wald Enter value 123 Eva G Second run Enter tomber of value from to 10: Encer value 1: 41 Enter value 2: 55 Este value 3:22 Dashboard Calendar To Do Notifications Inbox 9:07 ut 5G X 1436 Code Assignment... Programming I Code Assignment Documentation format One on tott It wing aso tutte Preferred ting to 11 Your document will have tware at the Console Output/Tusting site in the Bursa Code Section Dample Ansignment prestation Format Procedure for copying Output from the conte intotapad Ice Crew 2.- tedy Site the Procedure for copying the code from ding window seat det 1. het in the died. 3. Ato i test the 1-copy tie te that Previous Next Dashboard Calendar To Do Notifications Inbox 9:05 11 5G XcosC1436_Assignment... Q & errores an invalid number is entered output an error message and ask to entera number again. (2 points) . Once you get a valid number of values ask for each value individually Enumerate each value you are asking for. (points) Calculate the average and output it to the console. Your result should have three digits after the decimal point point) Your output should look similar to the following First run thereumber of astron to Invalid ut Entramber of values foto to: 11 Envand input Encer amber of value front IDEE interval ne value the value 411 Intervisi Intervale ! The average 12.67 Second run Beraber troto 1014 Enter 2:55 intervale 113 Enter valve The avere 2.250 Notes: When you run your program you should test both sides of the valid range for the number of values. You should also include two runs with different numbers of values to average. You don't have to test the valid range the second time. Insufficient console output is a point deduction Pay attention to where you create and how you into your res Unsafe code bal point deduction Comment your code Uncommented codes 1-point deduction D Dashboard Calendar To Do Notifications Inbox

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago