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
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...
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!

Transcribed Image Text:### Chapter 6: Using Arrays
2. **TestScoreList Program**
- Develop a program named `TestScoreList`.
- The program should accept eight integer values representing student test scores.
- It should display each score along with a message indicating how far it is from the average score.
3. **TemperaturesComparison Program**
- Create a program named `TemperaturesComparison`.
- This program allows a user to input five daily Fahrenheit temperatures, ranging from -30 to 130.
- If an input temperature is out of range, prompt the user to reenter it.
- If no temperature is lower than the previous temperature, display the message "Getting warmer."
- If every temperature is lower than the previous one, display "Getting cooler."
- If temperatures are not entered in either ascending or descending order, display "It’s a mixed bag."
- Finally, provide the temperatures in the entered order and display their average.
4. **CheckZips Program**
- Write a program called `CheckZips` for a package delivery service.
- The program holds an array of ten zip codes for delivery areas.
- Prompt users to enter a zip code, displaying a message indicating whether it is in the delivery area.
5. **DeliveryCharges Program**
- Develop a program named `DeliveryCharges`.
- Use an array to hold ten zip codes for delivery.
- Create a parallel array containing delivery charges for each zip code.
- Prompt the user for a zip code and display the delivery price or a message for non-delivery areas.
6. **Chat-A-While Program**
- A phone company offers services in six area codes with per-minute rates.
- Develop a program named `ChatAWhile`.
- Store area codes and rates in parallel arrays.
- Allow users to enter an area code and call length, then display the call's cost.
![The image displays a C# development environment in Visual Studio with a focus on code editing.
### Code Overview:
The code is part of a C# program located in a namespace called `TestScoreList`. Here's a breakdown of the key elements:
1. **Usings**: Several namespaces are included, such as `System`, `System.Linq`, and others related to threading and diagnostics.
2. **Namespace Declaration**:
- `namespace TestScoreList` contains the program.
3. **Class Declaration**:
- An internal class named `Program`.
4. **Main Method**:
- `private static void Main()`: Serves as the entry point of the program.
5. **Array Declaration**:
- `int[] testScore = new int[8];`: Declares an array to store test scores for eight students.
6. **Loop Structure**:
- A `for` loop iterates over the array to populate it with scores.
### Error:
- **CS0116**: "A namespace cannot directly contain members such as fields or methods." This error indicates incorrect placement of code elements within the namespace.
### Editor Layout:
- The editor window highlights the active file, `Program.cs`. The `Solution Explorer` on the right lists the project files and sections.
No graphs or diagrams are present in the image.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb9f0bdf4-572f-4133-8b3a-121eaba2f02a%2Fe843609f-3dfb-446f-b155-961f43095f3b%2Fpz6wkhf_processed.jpeg&w=3840&q=75)
Transcribed Image Text:The image displays a C# development environment in Visual Studio with a focus on code editing.
### Code Overview:
The code is part of a C# program located in a namespace called `TestScoreList`. Here's a breakdown of the key elements:
1. **Usings**: Several namespaces are included, such as `System`, `System.Linq`, and others related to threading and diagnostics.
2. **Namespace Declaration**:
- `namespace TestScoreList` contains the program.
3. **Class Declaration**:
- An internal class named `Program`.
4. **Main Method**:
- `private static void Main()`: Serves as the entry point of the program.
5. **Array Declaration**:
- `int[] testScore = new int[8];`: Declares an array to store test scores for eight students.
6. **Loop Structure**:
- A `for` loop iterates over the array to populate it with scores.
### Error:
- **CS0116**: "A namespace cannot directly contain members such as fields or methods." This error indicates incorrect placement of code elements within the namespace.
### Editor Layout:
- The editor window highlights the active file, `Program.cs`. The `Solution Explorer` on the right lists the project files and sections.
No graphs or diagrams are present in the image.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY