I can't figure this out at all. Help would be appreciated of input and output. Thanks!

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# programming. I can't figure this out at all. Help would be appreciated of input and output. Thanks!

00 File
View Git
Ⓒ-☺ | 4-882--| Debug
Toolbox
Program.cs + x What's New?
C# TestScoreList
68 %
5 5 5 5 5 8 6568223222832888322EN
29
30
BE
39
40
Error List Output
Ready
Debug
Build
Project
{
72°F
Sunny
// Declare integer values
int arraysize = 8;
h
throw new Argument NullException (nameof(args));
int i;
Int total = 0;
// Declare array to hold test scores
lest Analyze
Any CPU
↓
X 2 Errors
SEL
// Fill array with test sxores and sum values into "total"
for (i = 0; i < arraysize; ++i)
{
TE
Tools
Write($"Score [1 + 1] of [arraysize]: ");
(new int[arraySize])[1] Convert.ToInt32(ReadLine());
total += (new int[arraySize])[*];
// Prompt user for test scores
WriteLine($"Please enter [arraySize} test scores (integers only = no decimals)");
Start
Error List
Entire Solution
Code Description
CS0021 Cannot apply indexing with [] to an expression of type 'object'
ⒸCS0021 Cannot apply indexing with [] to an expression of type 'object'
TestScoreList.Program
A 0 Warnings
}
// Calculate average and display it (cast integers as double for 2 decimal precisiom)
average (double)total / (double)arraySize;
WriteLine("*****
WriteLine($"\nAverage test score (average:F2}\n");
Extensions
hen
Help
Window
6-|P|5-124
0 Messages 7 Build+ IntelliSense
Project
TestScoreList
TestScoreList
Search (Ctrl+Q)
N
Main(string[] args,
File
Program.cs
Program.cs
ema O
hp
Transcribed Image Text:00 File View Git Ⓒ-☺ | 4-882--| Debug Toolbox Program.cs + x What's New? C# TestScoreList 68 % 5 5 5 5 5 8 6568223222832888322EN 29 30 BE 39 40 Error List Output Ready Debug Build Project { 72°F Sunny // Declare integer values int arraysize = 8; h throw new Argument NullException (nameof(args)); int i; Int total = 0; // Declare array to hold test scores lest Analyze Any CPU ↓ X 2 Errors SEL // Fill array with test sxores and sum values into "total" for (i = 0; i < arraysize; ++i) { TE Tools Write($"Score [1 + 1] of [arraysize]: "); (new int[arraySize])[1] Convert.ToInt32(ReadLine()); total += (new int[arraySize])[*]; // Prompt user for test scores WriteLine($"Please enter [arraySize} test scores (integers only = no decimals)"); Start Error List Entire Solution Code Description CS0021 Cannot apply indexing with [] to an expression of type 'object' ⒸCS0021 Cannot apply indexing with [] to an expression of type 'object' TestScoreList.Program A 0 Warnings } // Calculate average and display it (cast integers as double for 2 decimal precisiom) average (double)total / (double)arraySize; WriteLine("***** WriteLine($"\nAverage test score (average:F2}\n"); Extensions hen Help Window 6-|P|5-124 0 Messages 7 Build+ IntelliSense Project TestScoreList TestScoreList Search (Ctrl+Q) N Main(string[] args, File Program.cs Program.cs ema O hp
5.
3
4.
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
of the temperatures.
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
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.
Ona
147 voy
063
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
the company does not deliver to the requested zip code.
a message indicating the price of delivery to that zip code or a message indicating that
Area Code
262
4
3nt
The Chat-A-While phone company provides service to six area codes and charges
total cost of the call.
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
Per-Minute Rate ($)
0.07
0.10
2821319x3 grimm
2921019x3
Transcribed Image Text:5. 3 4. 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 of the temperatures. 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 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. Ona 147 voy 063 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 the company does not deliver to the requested zip code. a message indicating the price of delivery to that zip code or a message indicating that Area Code 262 4 3nt The Chat-A-While phone company provides service to six area codes and charges total cost of the call. 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 Per-Minute Rate ($) 0.07 0.10 2821319x3 grimm 2921019x3
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