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, studio 22 design, statement problem, statement of a problem, program problem statement, programming statement, programming array, problem statements, out source programming, out source design, list of problem statements, c programming if statement, c programming arrays, c programming array, components of a problem statement, c line templates, arrays in programming, arrays in c programming, array programming, array in c programming, array c programming, 0 1 integer programming, test execution, integer programming

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