Student lab activity

Assignment Help Basic Computer Science
Reference no: EM13760175

Student Lab Activity

  • Given a set of program specifications for a simple business problem that requires the use of a collection of data to solve a business problem, code and test a program that implements arrays that meet the specifications and employ best programming practices.
  • Given a collection of data of a flexible and varying nature, design, code, and test a program that implements the use of a dynamic array that meets the specifications and employs best programming practices.

This lab will familiarize the student with arrays by storing values for rent in an apartment building in an array and displaying the correct rent, based on which floor of the building the unit is on.

A.    Deliverables:

Step

Deliverable

Points

5

Program Listing, Output, and Project Files

45

The Dropbox deliverables include the following:

1.     Include a zipped file with all the files from your Visual Basic project (see directions in Doc Sharing on how to collect and zip files).

2.     Create a single MS Word document and include the following:

  • For each lab, copy and paste your code directly into the MS Word file.
  • Include screenshot(s) of your test data with test results. Enter enough data to demonstrate that all your code has been tested.
  • Include another screenshot of the VB build output messages. Check your build output to make sure you have a successful build with (0) errors and (0) warnings. NOTE: The build output messages appear at the bottom of your window after you click the Build menu and before you click the Start Without Debugging option. Your build output messages provide a list of compiler warnings or errors and let you know if your program compiled successfully.
  • Include the Word document as part of the zipped project file.

3.     Upload each part of the lab into its corresponding weekly Dropbox.

B.    Lab Steps:

Preparation:

If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home.

Lab:

Step 1: Create a New Project

 

Create a Visual Basic Console Project in Visual Studio. Name the Project CIS170A_Lab06.

Write the program that will use arrays to store rent by floor and display the rent for the selected floor using the Processing Logic provided in Step 2.

 

Step 2:  Program Description

 

In this project, you will create a program, using an array, which keeps a list of the rent rates for an apartment building. The rent rate for an apartment depends on which floor the apartment is located on and every apartment on the same floor has the same rent rate. The program shall read the name of the apartment building, how many floors the apartment building has, and get the rental rates for each of the floors. Once the rental rates are provided, the program shall list the rates. The program user shall be able to provide a floor number and the program will display the apartment building name, the total number of floors, the requested floor, and how much the rent is for the given floor.

The customer has several apartment buildings to choose from. The smallest apartment building has three floors and the largest apartment building has 20 floors. The program shall validate that the floor number is between the minimum and maximum floor values. Also, the minimum rental rate for any building is $1,000 per month, while the highest rent is $2,500.The program shall validate that the provided rental rates are within the minimum and maximum rates.

Design Requirements:

In Week 7, we will expand on this program and in order to easily modify it, your program will incorporate the following design features:

1.     The design will be modular and the event handlers shall not contain any processing logic, but only invoke reusable modules.

2.     All minimum and maximum values shall be declared as constants.

3.     The user shall not be able to input the floor he or she wants to search for until after the apartment building name, the number of floors in the building, and the rent values for each of the floors in the building have been entered and validated.

4.     Declare rentlist, numFloors, and requestedFloor as form level variables. All other variables should be declared locally as required.

Reference no: EM13760175

Questions Cloud

An exhaustive search of the key space : 1.Consider the following threats to Web security and describe (in detail) how each is countered by a particular feature of SSL:a. Brute-Force Cryptanalytic Attack: An exhaustive search of the key space for a conventional encryption algorithm.
Using a unified modeling language class diagram : Consider the properties or attributes and methods that are related to your product. Using a Unified Modeling Language (UML) class diagram, describe these properties and methods.
Advise darren in relation to the law of negligence : Advise Darren in relation to the law of negligence and any defences that may be available and Barnum acted with the authority of the club, advise Stropper whether Hammerheads were obliged to give him a contract for the following year.
Patriot act : The USA C is a useful tool in combating terrorism, or does it violate our Civil Liberties
Student lab activity : Given a set of program specifications for a simple business problem that requires the use of a collection of data to solve a business problem, code and test a program that implements arrays that meet the specifications and employ best programming ..
Elastic and inelastic regions of the demand curve : At what price is revenue maximized, and what is revenue at that point? Identify the elastic and inelastic regions of the demand curve.
Plan and implement an intervention with your aggregate : Select a theory or a model that will help you to plan and implement an intervention with your aggregate. Write a 350 to 700-word paper reviewing the selected theory or model.
Data set analysis : The research questions/hypotheses address the problem as detailed by the researcher
Create a base class that contains all of the properties : Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Modify the definition of avl tree and require

Suppose that we modify the definition of AVL tree and require that for every node, the difference between the heights of its left and right sub-trees is at most 2. Is the height of the tree still O(log n)? Prove your answer using induction.

  Explaining open-source software products like linux

Intellectual property as well as increase its support of open-source software products like Linux be a successful growth strategy in the "brutally competitive marketplace" in which it operates? Why or why not?

  Find whether bit string contains two consecutive one bits

You wish to find out whether bit string contains two consecutive 1 bits. Obviously, you can do this using n probes. For which values of n in range {3, 4, 5, 6, 7} can this be done using fewer than n probes?

  Write a sequence of statements that creates a new file

There are two text files, whose names are given by two String variables , file1 and file2. These text files have the same number of lines. Write a sequence of statements that creates a new file whose name consists concatenating the names of the tw..

  Contrast, and summarize the most common procurement documen

Define, compare, contrast, and summarize the most common procurement documents used in industry.

  Select an existing piece of software

Select an existing piece of software, an application, a smart device, or anything with computer/software embedded in it, and imagine a new version to be built based on it, or imagine a brand new UI. Now perform the following:

  Is the difference y-x exactly representable

Is the difference y-x exactly representable, regardless of exponent range, if gradual underflow is allowed? WHy?

  What is the general solution to handle such game trees

The min max algorithm cannot handle some games (even-with alpha-beta pruning) because of the depth of the search trees involved. What is the general solution to handle such game trees?

  Describe the scope and analyze how to control the scope

Describe the project including the describe the scope and analyze how to control the scope and identify possible risks, constraints, and assumptions.

  Compare to the theoretical means

check the computed means and compare to the theoretical means (hint use the two previous equations to write two equations with two unknowns then solve for the unknowns by hand.)

  Two instance variables

Two instance variables

  What is the expected total number of tickets receive

In an arcade, you play game A 10 times and game B 20 times. Each time you play game A, you win with probability 1/3 (independently of the other times), and if you win you get 3 tickets (redeemable for prizes), and if you lose you get 0 tickets. Game ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd