C# Question 2. What do these errors mean and how do I fix them? Help of input and output would be appreciated!

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. What do these errors mean and how do I fix them? Help of input and output would be appreciated!

O
Edit View Git
Build
Project
0-288|9-C Debug
m.cs X What's New?
ScoreList
HAM 1
17
65
25
14.
GA
HOT
namespace TestScoreList
{
EL
37
55
SAVI
UP HIS
BUY HIS FIRST
24
26.
68
This Is How We Bingh
135K views2 weeks
55 %
40
FIR
referric
internal class Program
}
returences
static void Main(int i, int v)
// array declaration
int[] tostScore = now int[8];
//variable declaration
float avg, sum = 0;
get user input
}
Error List
Entire Solution
CS0116
Code
0 C50136
62°F
Cloudy
Console.WriteLine("Enter the test score of eight student");
for (int i = 0; 1 < 8; 1++)
}
// display the result
for (int i = 0; 1 < 8, 1++)
04 C50136
Console.Write("Test #" + 1
calculats average
3
Test
Debug
testscore[1] = Convert.ToInt32 (Console.ReadLine());
sum += tostScore [d]
71
Error List Output
Ready
7
Any CPU
↓
Tools
Analyze
3 Errors
3
Extensions Window Help
Min - testscore[1] + "From average; "+(double)(zestScore[1]-avg) -
10 Warnings
▶Start
TestScoreList.Program
DG-5
0 Messages 7
Build
H
Description
A namespace cannot directly contain members such as fields, methods or statements
A local or parameter named 'i' cannot be declared in this scope because that name is
used in an enclosing local scope to define a local or parameter
Intellisense
A local or parameter named 'i' cannot be declared in this scope because that name is
used in an enclosing local scope to define a local or parameter
MENG
Search (Ctrl+Q)
Project
TestScoreList
TestScoreList
TestScoreList
12
File
Program.cs
Pregram.cs
Program.cs
P
Ln: 24
TestScores Lis
24
Search Error List
Line Suppression
16
Active
36
Ch: 19
Active
Active
Transcribed Image Text:O Edit View Git Build Project 0-288|9-C Debug m.cs X What's New? ScoreList HAM 1 17 65 25 14. GA HOT namespace TestScoreList { EL 37 55 SAVI UP HIS BUY HIS FIRST 24 26. 68 This Is How We Bingh 135K views2 weeks 55 % 40 FIR referric internal class Program } returences static void Main(int i, int v) // array declaration int[] tostScore = now int[8]; //variable declaration float avg, sum = 0; get user input } Error List Entire Solution CS0116 Code 0 C50136 62°F Cloudy Console.WriteLine("Enter the test score of eight student"); for (int i = 0; 1 < 8; 1++) } // display the result for (int i = 0; 1 < 8, 1++) 04 C50136 Console.Write("Test #" + 1 calculats average 3 Test Debug testscore[1] = Convert.ToInt32 (Console.ReadLine()); sum += tostScore [d] 71 Error List Output Ready 7 Any CPU ↓ Tools Analyze 3 Errors 3 Extensions Window Help Min - testscore[1] + "From average; "+(double)(zestScore[1]-avg) - 10 Warnings ▶Start TestScoreList.Program DG-5 0 Messages 7 Build H Description A namespace cannot directly contain members such as fields, methods or statements A local or parameter named 'i' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter Intellisense A local or parameter named 'i' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter MENG Search (Ctrl+Q) Project TestScoreList TestScoreList TestScoreList 12 File Program.cs Pregram.cs Program.cs P Ln: 24 TestScores Lis 24 Search Error List Line Suppression 16 Active 36 Ch: 19 Active Active
CHAPTER 6 Using Arrays
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.
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
the company does not deliver to the requested zip code.
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
n
6. The Chat-A-While phone company provides service to six area codes and charges
the per-minute rates for phone calls shown in Figure 6-25. Write a program named
ChatAWhile that stores the area codes and rates in parallel arrays and allows a user
to enter an area code and the length of time for a call in minutes, and then display the
total cost of the call.
Area Code
262
414
608
Per-Minute Rate ($)
0.07
0.10
belonax3
Transcribed Image Text:CHAPTER 6 Using Arrays 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. 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 the company does not deliver to the requested zip code. 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 n 6. The Chat-A-While phone company provides service to six area codes and charges the per-minute rates for phone calls shown in Figure 6-25. Write a program named ChatAWhile that stores the area codes and rates in parallel arrays and allows a user to enter an area code and the length of time for a call in minutes, and then display the total cost of the call. Area Code 262 414 608 Per-Minute Rate ($) 0.07 0.10 belonax3
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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