Project Week 1 of 7: Creating a User Interface
SUMMARY
Working with your assigned group, set the foundation for a project that will be built upon each week. You will begin by creating a basic user interface code that will be modified in the following week’s objective. The assignment will help you get started using the programming environment and some practice with coding.
In this program, you will create the following methods:
1. DisplayApplicationInformation, which will provide the program user some basic information about the program.
2. DisplayDivider, which will provide a meaningful output separator between different sections of the program output.
3. 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.
4. 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:
1. car make, which will be a string data type;
2. year, which will be an integer data type;
3. gas mileage of car, which will be a double data type; and
4. a display of the collected information.
Also, note that the program should contain a well-documented program header.
Required Software
Connect to the Lab here.Links to an external site.
STEP 1: Review the Design
Download the program description and pseudocode design, and make sure you fully understand the program design and ask any questions that you may have BEFORE you start programming.
Download the instructions and grading rubric in files section or clicking here.
STEP 2: Construct the Program
1. Start Microsoft Visual Studio and create a new project titled “CIS247C_Project1”.
2. Using the design, construct the methods.
3. 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: Screenshots
• Capture a screenshot of your working code and paste into a Word document.
STEP 5: Submit Deliverables
• Put all of the Visual Studio Project files into a zip file.
• Upload the zip file and screenshots (Word document).
• Please include the names of all participating team members in word document.
• Only one submission is required for the entire group.
CIS247C Week 1 Project Overview
This program creates the basic user interface code that can be used in the following week’s lab assignments. The assignment will help you get started using the programming environment and some practice with coding.
In this program, you will create the following methods:
1. DisplayApplicationInformation, which will provide the program user some basic information about the program.
2. DisplayDivider, which will provide a meaningful output separator between different sections of the program output.
3. 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.
4. 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:
1. Car make, which will be a string data type;
2. Year, which will be an integer data type;
3. Gas mileage of car, which will be a double data type; and
4. Display of the collected information.
Also, note that the program should contain a well document program header.
Grading Rubric
Compiles correctly 10
DisplayApplicationInformation() 5
DisplayDivider() 5
GetInput() 5
TerminateApplication() 5
main() with correct function call and correct string conversion methods 15
Screenshot of working code 5
TOTAL 50
Steps
1. Review the pseudocode (included in document)
2. Construct the program based on the pseudocode.
3. Compile and test the program to ensure there are no errors.
4. Capture screenshot of working code and paste into word document.
5. Submit code (or zipped visual studio project) and screenshot.
Pseudocode
//Programmers: LIST ALL NAMES
//CIS247C Week 1 Project
//Program Description: PROVIDE A DESCRIPTITON OF THE PROGRAM
Include preprocessor directives
Include prototypes for functions
Start main
//declare variables
input as string
make as string
year as integer
mileage as double
call DisplayApplicationInformation
call DisplayDivider(“Start Program”)
call DisplayDivider(“Get Car Make”)
set make = GetInput(“make”)
display “Vehicle make: “ + name
call DisplayDivider(“Get Year”)
set input = GetInput(“year”)
set year = convert input to integer
display “Vehicle year: “ + year
call DisplayDivider(“Get Mileage”)
set input = GetInput(“Gas Mileage”)
set mileage = convert input to double
//display mileage to 2 decimal places
display “Vehicle mileage: “ + mileage
call TerminateApplication
end main program
function DisplayApplicationInformation
display “Welcome to CIS247C Project”
display “This program accepts user input as a string, then makes the appropriate data conversion”
end function
function DisplayDivider(string message)
display “**************** “ + message + “****************”
end function
function GetInput(string message) as string
string input
display “Enter the “ + message
get input
return input
end function
function TerminateApplication
display “End of CIS247C Project Application”
exit application
end function
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.