ile Edit : | d-R四国 hat's New? 57 % TestScoreList 1 5 8 9 C 10 12 14 15 17 18 Error List View Git Project Build Debug Test Any CPU Entire Solution Error List Output Ready 66°F Sunny using System; namespace TestScoreList O references internal class TestScoreList { Program.cs X ? 2.2. O references static void Main() { 84 for (int i = 0; i < 8; i++) { } int[] nuns new int [8]; // Array to store test scores int avg; // variable to store average // variable to store sum int sun = 0; Write("Test Score List \nPlease Enter Test Score of 8 Student:-\n"); Debug } avg= sun / 8; // calculate average write("Average of Test Score of 8 Student: " + avg+ "\n"); for (int i = 0; i < 8; i++) { // display result до -= WriteLine("Student Test Score #" + (1+1) + ": 7 + nums [1] + Far From average: + (avg-nums[1])); 个 2 Code Description CS0103 The name 'Write' does not exist in the current context CS0103 The name 'Write' does not exist in the current context CS0103 The name 'Write' does not exist in the current context CS0103 The name 'WriteLine' does not exist in the current context // loop to accept test sxore Write("Enter Student Test Score a + (1+1)+": "); // display message to user nums [1] = Convert.ToInt32(Console.ReadLine()); // accept number convert it to integer and store it into array sun += nums[1]; // calculate sun of all numbers Analyze Tools Extensions Start D M TestScoreList.TestScoreList 4 Errors A 0 Warnings 00 Messages °r Build+ IntelliSense # 3 * $ 4 101 5 fs % 5 Window < 6 Help 6 M Project TestScoreList TestScoreList TestScoreList TestScoreList 88 Search (Ctrl+Q) 蝦习习习。 hp 7 Main() * File Program.cs Program.cs Program.cs Program.cs + 8 fg 144 9 P TestScoreList Ln: 37 f10 Search Error List Ch: 1. SPC Line Suppression State Active Active 24 Active 14 18 27 Active ▷11 0 fil Add

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
100%

C# Question 2. I get these 4 errors and don't know how to fix or get rid of them. I've tried everything. Help would be appreciated!

File Edit
67%
What's New?
C#TestScoreList
HNM
3
SC
86400
9
10
11
12
13
15
16
17
18
19
20
21
22
23
25
27
28
Error List
W
View Git Project Build
66°F
Sunny
using System;
Enamespace TestScoreList
Entire Solution
BB2-S
Error List Output
Ready
1
Program.cs X
O references
Internal class TestScoreList
{
?
O references
static void Main()
{
int[] nums = new int[8];
int avg;
int sum= 0,
MAANAN
3
}
for (int i = 0; i < 8; i++)
{
@
// Array to store test scores
// variable to store average
// variable to store sum
Write("Test Score List \nPlease Enter Test Score of 8 Student:-\n");
Debug
f2
PE
2
Debug
}
avg = sum / 8;
// calculate average
Write("Average of Test Score of 8 Student: " + avg + "\n");
for (int i = 0; i < 8; i++)
{
// display result
4 Errors
// loop to accept test sxore
Write("Enter Student Test Score #" + (1 + 1) + ": "); // display message to user
nums [1] = Convert.ToInt32(Console.ReadLine());
sun += nums[1]; // calculate sum of all numbers
Any CPU
f3
Code Description
CS0103 The name 'Write' does not exist in the current context
CS0103 The name 'Write' does not exist in the current context
CS0103 The name 'Write' does not exist in the current context
CS0103 The name 'WriteLine' does not exist in the current context
#
WriteLine("Student Test Score #" + (1 + 1) + ": "
+ nums [1] + Far From average:
" + (avg
nums[1]));
g
3
Analyze Tools Extensions Window
A0 Warnings
TestScoreList.TestScoreList
$
4
-
Start -
0 Messages
// accept number convert it to integer and store it into array
f5
%
I
LO
Build IntelliSense
=
16
Help Search (Ctrl+Q)
6
HE
Project
TestScoreList
TestScoreList
TestScoreList
TestScoreList
hp
&
7
fg
Main()
*
风习习,
File
W+
Program.cs
Program.cs
Program.cs
Program.cs
8
fg
KA
9
P
TestScoreList
Ln: 37
f10
Search Error List
Ch: 1
DII
Line Suppression State
Active
18
Active
24
Active
27 Active
SPC C
f11
Add to
DDI
Transcribed Image Text:File Edit 67% What's New? C#TestScoreList HNM 3 SC 86400 9 10 11 12 13 15 16 17 18 19 20 21 22 23 25 27 28 Error List W View Git Project Build 66°F Sunny using System; Enamespace TestScoreList Entire Solution BB2-S Error List Output Ready 1 Program.cs X O references Internal class TestScoreList { ? O references static void Main() { int[] nums = new int[8]; int avg; int sum= 0, MAANAN 3 } for (int i = 0; i < 8; i++) { @ // Array to store test scores // variable to store average // variable to store sum Write("Test Score List \nPlease Enter Test Score of 8 Student:-\n"); Debug f2 PE 2 Debug } avg = sum / 8; // calculate average Write("Average of Test Score of 8 Student: " + avg + "\n"); for (int i = 0; i < 8; i++) { // display result 4 Errors // loop to accept test sxore Write("Enter Student Test Score #" + (1 + 1) + ": "); // display message to user nums [1] = Convert.ToInt32(Console.ReadLine()); sun += nums[1]; // calculate sum of all numbers Any CPU f3 Code Description CS0103 The name 'Write' does not exist in the current context CS0103 The name 'Write' does not exist in the current context CS0103 The name 'Write' does not exist in the current context CS0103 The name 'WriteLine' does not exist in the current context # WriteLine("Student Test Score #" + (1 + 1) + ": " + nums [1] + Far From average: " + (avg nums[1])); g 3 Analyze Tools Extensions Window A0 Warnings TestScoreList.TestScoreList $ 4 - Start - 0 Messages // accept number convert it to integer and store it into array f5 % I LO Build IntelliSense = 16 Help Search (Ctrl+Q) 6 HE Project TestScoreList TestScoreList TestScoreList TestScoreList hp & 7 fg Main() * 风习习, File W+ Program.cs Program.cs Program.cs Program.cs 8 fg KA 9 P TestScoreList Ln: 37 f10 Search Error List Ch: 1 DII Line Suppression State Active 18 Active 24 Active 27 Active SPC C f11 Add to DDI
CHAPTER 6 Using Arrays
2.
Write a program named TestScoreList that accepts eight int values representing
far it is from the average.
student test scores. Display each of the values along with a message that indicates how
3. 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 any
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,
of the temperatures.
display the temperatures in the order they were entered, and then display the average
4. 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
message indicating whether the zip code is in the company's delivery area.
5. 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
that differ for each zip code. Prompt a user to enter a zip code, and then display either
a message indicating the price of delivery to that zip code or a message indicating that
the company does not deliver to the requested zip code.
le phone company provides service to six a
Transcribed Image Text:CHAPTER 6 Using Arrays 2. Write a program named TestScoreList that accepts eight int values representing far it is from the average. student test scores. Display each of the values along with a message that indicates how 3. 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 any 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, of the temperatures. display the temperatures in the order they were entered, and then display the average 4. 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 message indicating whether the zip code is in the company's delivery area. 5. 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 that differ for each zip code. Prompt a user to enter a zip code, and then display either a message indicating the price of delivery to that zip code or a message indicating that the company does not deliver to the requested zip code. le phone company provides service to six a
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 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