Select Page

CT 1510 NEU Individual Variables and An Array Programming Logic and Design Discussion

Question Description

Discussion Response should be 200 words

Assignment responses should be 150.

Discussion Directions:

Individual Variables and an Array

Describe the point at which you should consider changing from individual variables to an array, and if it is reasonable to use an array when you only have two or three items to track. Explain why or why not.

Discussion Posts:

Damon:

It would seem like arrays are rather useful for any type of program that must sort individual data within a range into sections. This becomes useful and potentially a need, for when input is far more in quantity. The array functions, in my mind, like a ultra fast sorting machine; with the right variables, it can save the user a great deal of work. I can see this working well in accounting software, especially in compiling reports.

For example, the program Quickbooks takes input from the user, such as payroll data, tax information, vendor information, bills, and such. The primary role for quickbooks is to receive all data for the specific company, and produce reports, documents, invoices, checks or any other paperwork necessary. If one were to imagine a company that buys raw materials in order to install or create a product, then sends invoices to customers after selling product, and must report their income and outcome end of year. I would assume in the bones of the program itself would be a host of arrays. So, if a user were to input a received invoice for materials purchased, then an array would collect certain figures within that bill, such as tax information, and sort it into tax payable. The invoice’s amount would be captured by the array, and send that data to an accounts payable memory. An array would send other information, such as dates to billing cycle memory, vendor information to accounts memory, and other stuff. All of this will be pulled, along with other data, when reports are pulled. And this is just a small thing; wiht the right arrays, all data can be sorted speedily.

It would be pointless, however, for an array to be utilized for small things. it’s easier to manage the basic core of a few things by writing out the program, and to see the machinations of it work. But it might save a programmer time to write it out, so it’s probably an acquired taste.

Assignment 1.1: Damon’s computer is down so here is his code. you can run his code on BASIC

[start]
dim UserN(20)
print “Enter up to 20 numbers, or enter 999 to stop entry. The program will Display the number is reverse order”

while x < 20 and UserN(x) <> 999
input UserN(x)
if UserN (x) = 999, then [continue]
x = x +1
wend
[continue]

print “Here are your numbers in reverse order”

while x <> 0
print UserN(x)
x = x – 1
Damon’s assignment 1.2 and 1.4 is attached. And as always we have to wait for elmer to post his work.

"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you "A" results."

Order Solution Now