ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 12 May 2017 My Price 11.00

Assignment 9 Practical Arrays (Chapter 8)

Assignment 9 Practical Arrays (Chapter 8)

Specification of program

This program may be used to explore the array structure and the ListBox component. The ListBox is used to present the values stored in an array. You are required to code the event handlers for the initialize array and the display array. A constant is used to allow for easy manipulation of the array. The arrays are declared as follows:

 

private

{ Private declarations }

const

nItems = 5;

var

nBasicsIntArray : array [0..(nItems-1)] of integer;

nBasicsStrArray : array [0..(nItems-1)] of string;

public

{ Public declarations }

end;

 

The following code is used in the OnShow of the form:

procedure Tfrm2016Assignment9.FormShow(Sender: TObject);

//as an alternative, you may experiment with TDateTimePicker

var

dDateTime : TDateTime;

begin

//set the date to the current date and time

dDateTime := Date() + Time();

edtDateTime.Text := DateTimeToStr(dDateTime);

edtDateTime.ReadOnly := TRUE;

end;

 

The following EXAMPLE code is used to assign user values to the array:

procedure Tfrm2016Assignment9.btnAssignIntArrayClick(Sender: TObject);

var

iCount : Integer;

sString : String;

begin

for iCount := 0 to (nItems-1) do

begin

sString := InputBox('Please input an integer value', 'Value ' + IntToStr(iCount), '0');

nBasicsIntArray[iCount] := StrToInt(sString);

end;

end; INF1511/201

39

 

Program structure – Initialize integer array, display double and display array.

Example of required output

This UI below presents the following (required) sequence of operations:

ï‚· Initialize STRING array to zero values.

ï‚· Assign STRING array. Values are assigned using the InputBox to gain user values.

ï‚· Display array.

ï‚· Convert strings to capital letters..

ï‚· Display array.

Answers

(11)
Status NEW Posted 12 May 2017 04:05 AM My Price 11.00

-----------

Attachments

file 1494564126-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)