iLab 1 of 7: Creating a User Interface
Scenario and Summary
This program creates the basic user interface code that can be used in the following weeks iLab assignments. The assignment will help you get started using the programming environment and some practice with coding. You will also be able to reuse much, if not all, of the code in later assignments.
In this program, you will create the following methods:
DisplayApplicationInformation, which will provide the program user some basic information about the program. DisplayDivider, which will provide a meaningful output separator between different sections of the program output. GetInput, which is a generalized function that will prompt the user for a specific type of information, then return the string representation of the user input. TerminateApplication, which provides a program termination message and then terminates the application.
Using these methods, you will construct a program that prompts the user for the following:
your name, which will be a string data type; your age, which will be an integer data type; the gas mileage for your car, which will be a double data type; and a display of the collected information.
Also, note that the program should contain a well-documented program header.
Deliverables
Step
Deliverable
Step 4
Screenshot of running program results
Step 5
Zip file with entire Lab files
Preparation:
If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home. Locate the Microsoft Visual Studio icon and launch the program.
i L A B S T E P S
STEP 1: Review the Design
Download the program description and puesdocode design, and make sure you fully understand the program design and ask any questions that you may have BEFORE you start programming.
Click Week 1 Lab Design to download program design.
STEP 2: Construct the Program
Start Microsoft Visual Studio and create a new project titled CIS247C_WK1_Lab_LASTNAME. Using the design, construct the methods. Once the methods are constructed, use the design to create the main program.
STEP 3: Compile and Test
When done, ensure that there are no compile errors. If there are errors, open up the Error list and fix all listed errors. Execute your code and check your output to ensure that you have the desired output. If you need to fix anything, close your execution window, modify your code as necessary, and rebuild.
STEP 4: Screen Prints
Capture the results of each test and paste them into a Word document. Below is a sample program output.
Screenshot of a program output that reads: Welcome to your first Object Oriented ProgramEmployee ClassCIS247C, Week 2 Lab Name: Prof.Nana Liu *************** Start Program *************** *************** Get Name *************** Please enter your nameNana Liu Your name is: Nana Liu *************** Get Age *************** Please enter your age100 Your age is: 100 *************** Get Mileage *************** Please enter your mileage52.16 Your car MPG is: 52.16 The end of the CIS247C Week1 iLab. Press any key to continue. . .
STEP 5: Submit Deliverables
Put all of the Project files into a zip file. Put the zip file, test plan, and screen shots (Word document) in the Dropbox.
Submit your lab to the Dropbox located on the silver tab at the top of this page. For instructions on how to use the Dropbox, read these Step-by-Step Instructions or watch this Dropbox Tutorial.
See Syllabus Due Dates for Assignments & Exams for due date information.
Reviews
There are no reviews yet.