2. Write a program named TestScoreList that accepts eight int values representing student test scores. Display each of the values along with a message that indicates how far it is from the average. bolat abortora rito

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

C# question 2. I have this one error and can't seem to figure it out and where it is coming from? Hep would be appreciated!

CHAPTER 6 Using Arrays
3.
Amp/12 8 oz.
2. Write a program named TestScoreList that accepts eight int values representing
student test scores. Display each of the values along with a message that indicates how
far it is from the average.
BIC,
SHNESS).
00580
ante abolat abortora dto
any
tomonot
Write a program named Temperatures Comparison that allows a user to input five
daily Fahrenheit temperatures that must range from -30 to 130; if a temperature
is out of range, require the user to reenter it. If no temperature is lower than
previous one, display a message Getting warmer. If every temperature is lower than
the previous one, display a message Getting cooler. If the temperatures are not entered
in either ascending or descending order, display a message It's a mixed bag. Finally,
display the temperatures in the order they were entered, and then display the average
of the temperatures.
boristo
bon
21 01936 d
Write a program named CheckZips that is used by a package delivery service to check
delivery areas. The program contains an array that holds the 10 zip codes of areas to
which the company makes deliveries. Prompt a user to enter a zip code, and display a
building 7 oy
oy ba
message indicating whether the zip code is in the company's delivery area.
Dier
The
TYSTH
4600
Code
Write a program called DeliveryCharges for the package delivery service in Exercise 4.
The program should again use an array that holds the 10 zip codes of areas to which
the company makes deliveries. Create a parallel array containing 10 delivery charges
hat differ for each zip code. Prompt a user to enter a zip code, and then display either
e company does not deliver to the requested zip code.
message indicating the price of delivery to that zip code or a message indicating that
won
Per-Minute Rate ($)
e Chat-A-While phone company provides service to six area codes and charges
per-minute rates for phone calls shown in Figure 6-25. Write a program named
atAWhile that stores the area codes and rates in parallel arrays and allows a user
ter an area code and the length of time for a call in minutes, and then display the
cost of the call.
Transcribed Image Text:CHAPTER 6 Using Arrays 3. Amp/12 8 oz. 2. Write a program named TestScoreList that accepts eight int values representing student test scores. Display each of the values along with a message that indicates how far it is from the average. BIC, SHNESS). 00580 ante abolat abortora dto any tomonot Write a program named Temperatures Comparison that allows a user to input five daily Fahrenheit temperatures that must range from -30 to 130; if a temperature is out of range, require the user to reenter it. If no temperature is lower than previous one, display a message Getting warmer. If every temperature is lower than the previous one, display a message Getting cooler. If the temperatures are not entered in either ascending or descending order, display a message It's a mixed bag. Finally, display the temperatures in the order they were entered, and then display the average of the temperatures. boristo bon 21 01936 d Write a program named CheckZips that is used by a package delivery service to check delivery areas. The program contains an array that holds the 10 zip codes of areas to which the company makes deliveries. Prompt a user to enter a zip code, and display a building 7 oy oy ba message indicating whether the zip code is in the company's delivery area. Dier The TYSTH 4600 Code Write a program called DeliveryCharges for the package delivery service in Exercise 4. The program should again use an array that holds the 10 zip codes of areas to which the company makes deliveries. Create a parallel array containing 10 delivery charges hat differ for each zip code. Prompt a user to enter a zip code, and then display either e company does not deliver to the requested zip code. message indicating the price of delivery to that zip code or a message indicating that won Per-Minute Rate ($) e Chat-A-While phone company provides service to six area codes and charges per-minute rates for phone calls shown in Figure 6-25. Write a program named atAWhile that stores the area codes and rates in parallel arrays and allows a user ter an area code and the length of time for a call in minutes, and then display the cost of the call.
Edit View Git Project Build Debug
2-5
am.cs* X What's New?
tScoreList
INMESTE
%
11
233495
13
19
20
V
27
281
Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Exception Services;
31
tab
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace TestScoreList
O references
internal class Program
Tror List
Entire Solution
66°F
Sunny
{
esc
O references
private static void Main()
Error List Output
Ready
// array declaration
int[] testScore = new int[8];
//variable declaration
✓ T
float avg, sum = 0;
// get user input
t
f1
Debug
Console.WriteLine("Enter the test score of eight student");
for (int i = 0; i < 8; i++)
{
H
?
A0 Warnings
1 Error
f2
82
Test Analyze Tools
Any CPU
f3
#
Code Description
CS0116 A namespace cannot directly contain members such as fields, methods or statements
W
3
0 Messages
TestScoreList.Program
f4
E
S
Start
101
4
Y
Extensions
f5
T
%
R
Build IntelliSense
LO
5
T
+
L
Window
16
T
Help
G
Project
TestScoreList
Search (Ctrl+Q)
智買风习习习
hp
17
&
7
Y
18
H
File
Program.cs
*
00
144
U
Ln: 18
J
TestScores List
110 11
Ch: 32
Search Error List
Line Suppression State
18
Active
O
100
K
SPC
f11
CRLF
►
- 4 x
↑ Add to Source Control
- ☀ Solution Explorer
++
f12
Sign in
Search Solution Explorer
Solution TestScores
Solution Items
editorconfig
C TestScoreList
Properties
& References
editorconfig
App.config
▷ C# Program.cs
Solution Explorer Git Chang
Properties
AR
Select Reposito
11
10/
insert
Transcribed Image Text:Edit View Git Project Build Debug 2-5 am.cs* X What's New? tScoreList INMESTE % 11 233495 13 19 20 V 27 281 Busing System; using System.Collections.Generic; using System.Linq; using System.Runtime.Exception Services; 31 tab using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace TestScoreList O references internal class Program Tror List Entire Solution 66°F Sunny { esc O references private static void Main() Error List Output Ready // array declaration int[] testScore = new int[8]; //variable declaration ✓ T float avg, sum = 0; // get user input t f1 Debug Console.WriteLine("Enter the test score of eight student"); for (int i = 0; i < 8; i++) { H ? A0 Warnings 1 Error f2 82 Test Analyze Tools Any CPU f3 # Code Description CS0116 A namespace cannot directly contain members such as fields, methods or statements W 3 0 Messages TestScoreList.Program f4 E S Start 101 4 Y Extensions f5 T % R Build IntelliSense LO 5 T + L Window 16 T Help G Project TestScoreList Search (Ctrl+Q) 智買风习习习 hp 17 & 7 Y 18 H File Program.cs * 00 144 U Ln: 18 J TestScores List 110 11 Ch: 32 Search Error List Line Suppression State 18 Active O 100 K SPC f11 CRLF ► - 4 x ↑ Add to Source Control - ☀ Solution Explorer ++ f12 Sign in Search Solution Explorer Solution TestScores Solution Items editorconfig C TestScoreList Properties & References editorconfig App.config ▷ C# Program.cs Solution Explorer Git Chang Properties AR Select Reposito 11 10/ insert
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY