Em Andamento

Out of bound array and index. Simple enough.

Design and implement the class myarray that solves the array index out of bound problem and also allows the user to begin the array index starting at any integer, positive or negative. Every object of the type "myarray" is an array of the 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); myarray mylist(2,13); myarray yourlist(-5,9); The statement in Line 1 declares LIST to be an array of 5, 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]. Write a program to test the class myArray. Bonus *NOT required*: -------------------- Redisgn the class myarray using class templates so that the class can be used in any application that requires arrays to process data.

## Deliverables

Workable program. Source code, comments. Deadline for this program is in 16 hours.

## Platform

Visual studio Windows 2000 pro.

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: visual design pro, test out, statement problem, program problem statement, problem statements, source programming, source design, list problem statements, programming statement, programming arrays, programming array, components problem statement, line templates, array programming, test execution, integer programming, index, myarray int yourlist line, simple windows data application, simple array program, visual studio implement, php pro templates, simple program bonus, index is, simple array process

Acerca do Empregador:
( 2 comentários ) United States

ID do Projeto: #3031391

Premiar a:

jamix2

See private message.

$33.57 USD em 1 dia
(57 Avaliações)
5.9

2 freelancers estão ofertando em média $38 para este trabalho

shashikhanvw

See private message.

$42.5 USD em 1 dia
(15 Comentários)
3.8