Which will provide the program user some basic information

Assignment Help C/C++ Programming
Reference no: EM131556699

Assignemnt: Lab, Design Program Description: Basic User Interface

This program creates the basic user interface code that can be used in the following week's iLab assignments. The assignment will help you get started using the programming environment and some practice with coding. You will also be able to re-use much, if not all, of the code in later assignments.

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. Your name, which will be a string data type =George Cabral
2. Your age, which will be an integer data type =30
3. The gas mileage for your car, which will be a double data type =35,000
4. Display the collected information

Also, note that the program should contain a well document program header.

Pseudocode

//Program Header
//Program Name: Basic User Interface
//Programmer: George Cabral
//CIS247, Week 1 Lab
//Program Description: PROVIDE A DESCRIPTITON OF THE PROGRAM

Start main

//declare variables input as string name as string age as integer
mileage as double

callDisplayApplicationInformation
callDisplayDivider("Start Program")

callDisplayDivider("Get Name") set name = GetInput("Your Name")
display "Your name is: " + name

callDisplayDivider("Get Age") set input = GetInput("Your Age") set age = convert input to integer
display "Your age is: " + age

callDisplayDivider("Get Mileage") set input = GetInput("Gas Mileage") set mileage = convert input to double //display mileage to 2 decimal places
display "Your car MPG is: " + mileage

callTerminateApplication

end main program procedure DisplayApplicationInformation

display "Welcome the Basic User Interface Program" display "CIS247, Week 1 Lab" display "Name: YOUR NAME"
display "This program accepts user input as a string, then makes the appropriate data conversion"

end procedure

procedureDisplayDivider(string outputTitle) display

+ outputTitle +

end procedure function GetInput(string inputType) as string
strInput as string

display "Enter the " + inputType get strInput

returnstrInput

end function procedure TerminateApplication

display "Thank you for using the Basic User Interface program" exit application

end procedure

1. Start Microsoft Visual Studio and create a new project titled "CIS247C_WK1_Lab_LASTNAME".
2. Using the design, construct the methods.
3. Once the methods are constructed, use the design to create the main program.

Capture the results of each test and paste them into a Word document. Below is a sample program output.

• Put all of the Visual Studio Project files into a zip file.
• Upload the zip file, test plan, and screenshots (Word document).

Reference no: EM131556699

Questions Cloud

Create a simple java program that connects to database : create a simple Java program that connects to this database using JDBC. Your program should then query this database's "student" table.
How much larry should deposit each month : INVESTMENT ANALYSIS Since he was 22 years old, Ben has been depositing $200 at the end of each month into a taxfree retirement account earning interest.
Natural rate of unemployment : Potential GDP is $25 trillion; expectations are adaptive; the natural rate of unemployment is 5.5%; the 2010 inflation rate was 3.5%. The phillips curve is:
Warehouse management processes : Research at least 2 companies, and familiarize yourself with their warehouse management processes, and then discuss the following:
Which will provide the program user some basic information : DisplayApplicationInformation, which will provide the program user some basic information about the program.
Find size of monthly payments paul will be required to make : PERSONAL LOANS Two years ago, Paul borrowed $10,000 from his sister Gerri to start a business. Paul agreed to pay Gerri interest for the loan at the rate.
Discuss the technological changes : Using a Microsoft Word document, please assume you are a reporter writing ten years hence. Please discuss the technological changes.
How much cash can josh muster for his business : REFINANCING A HOME Josh purchased a condominium 5 yr ago for $180,000. He made a down payment of 20% and financed the balance with a 30-yr conventional.
Explain the impact if the attack or threat was actualized : Explain the impact if the attack or threat was actualized (happened). Would there be a monetary loss? Loss of confidence (in the event of a business breach).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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