I need quick answer for weite:-.

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

I need quick answer for weite:-.

 

This assignment relates to content from Chapter 13 and Exercise #11 of the eText. The objective is to have the program know when numbers out of the
array boundaries are received and mitigate those problems. The given code intentionally induces numbers out of bounds and the student's portion must
correct for this. As always use a header file and implementation file to do those calculations. Remember not to change the given code below in any way.
Instructors are encouraged to paste this default code over your source and see if your program still runs.
INSTRUCTIONS
You will not complete this assignment in Mindtap. This assignment will be completed in Visual Studio and submitted to the associated Assignment Folder. To
complete your assignment, ZIP and submit the entire project folder with *.sln project file inside.
1. Download the supplied code. Do not change anything in the supplied code which is the Ch13_Ex11_MainProgram.cpp (except to add
documentation and your name). Please use the file names listed below since your file will have the same components in the supplied code.
2. Recall that in C++, there is no check on an array index out of bounds. However, during program execution, an array index out of bounds can cause
serious problems. Also, in C++, the array index starts at 0.
3. Design and implement the class myArray that solves the array index out of bounds problem and also allows the user to begin the array index starting
at any integer, positive or negative.
• Every object of type myArray is an array of type int. During execution, when accessing an array component, if the index is out of bounds, the
program must terminate with an appropriate error message. Consider the following statements:
myArray list(5);
//Line 1 myArray
myList(2, 13);
//Line 2
myArray yourList(-5, 9);
//Line 3
The statement in Line 1 declares list to be an array of 5 components, the component type is int, and the components are:list[0], list[1], ...,
list[4]; The statement in Line 2 declares myList to be an array of 11 components, the component type is int, and the components are: myList[2],
myList[3], ..., myList[12];
The statement in Line 3 declares yourList to be an array of 14 components, the component type is int, and the components are: yourList[-5],
yourList[-4], ..., yourList[0], ..., yourList[8].
listi: 88888
Enter 5 integers: 9
After filling
list2: 9.8% isti: 9 8 7 56
Enter 3 elements: 1
S
First three elements of listi: 1 2 3
list3: 00000000
list3: 7 0 54 8 15 080
Press any key to continue . . .
4. Write a program to test the class myArray.
Transcribed Image Text:This assignment relates to content from Chapter 13 and Exercise #11 of the eText. The objective is to have the program know when numbers out of the array boundaries are received and mitigate those problems. The given code intentionally induces numbers out of bounds and the student's portion must correct for this. As always use a header file and implementation file to do those calculations. Remember not to change the given code below in any way. Instructors are encouraged to paste this default code over your source and see if your program still runs. INSTRUCTIONS You will not complete this assignment in Mindtap. This assignment will be completed in Visual Studio and submitted to the associated Assignment Folder. To complete your assignment, ZIP and submit the entire project folder with *.sln project file inside. 1. Download the supplied code. Do not change anything in the supplied code which is the Ch13_Ex11_MainProgram.cpp (except to add documentation and your name). Please use the file names listed below since your file will have the same components in the supplied code. 2. Recall that in C++, there is no check on an array index out of bounds. However, during program execution, an array index out of bounds can cause serious problems. Also, in C++, the array index starts at 0. 3. Design and implement the class myArray that solves the array index out of bounds problem and also allows the user to begin the array index starting at any integer, positive or negative. • Every object of type myArray is an array of type int. During execution, when accessing an array component, if the index is out of bounds, the program must terminate with an appropriate error message. Consider the following statements: myArray list(5); //Line 1 myArray myList(2, 13); //Line 2 myArray yourList(-5, 9); //Line 3 The statement in Line 1 declares list to be an array of 5 components, the component type is int, and the components are:list[0], list[1], ..., list[4]; The statement in Line 2 declares myList to be an array of 11 components, the component type is int, and the components are: myList[2], myList[3], ..., myList[12]; The statement in Line 3 declares yourList to be an array of 14 components, the component type is int, and the components are: yourList[-5], yourList[-4], ..., yourList[0], ..., yourList[8]. listi: 88888 Enter 5 integers: 9 After filling list2: 9.8% isti: 9 8 7 56 Enter 3 elements: 1 S First three elements of listi: 1 2 3 list3: 00000000 list3: 7 0 54 8 15 080 Press any key to continue . . . 4. Write a program to test the class myArray.
Expert Solution
steps

Step by step

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