Discount Get CIS 247B ALL WEEKS Solution ONLY $84.70 $112.93
CIS 247B Week 1 - in Java [$8.99]
CIS 247B Week 2 - in Java – Object Construction and Data Abstra... [$15.99]
CIS 247B Week 3 - in Java - Overloaded Methods and Static Methods... [$15.99]
CIS 247B Week 4 - in Java - Composition and Class Interfaces [$15.99]
CIS 247B Week 5 - in Java - Composition, Inheritance, and Polymor... [$15.99]
CIS 247B Week 6 - in Java - Interfaces and Abstract Classes [$19.99]
CIS 247B Week 7 - in Java - Putting It All Together [$19.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS247 CIS 247 CIS/247 - CIS247B - Week 1 - Lab 1 - iLab 1- in Java – Guaranteed 100% score
    CIS247 CIS 247 CIS/247 - CIS247B - Week 1 - Lab 1 - iLab 1- in Java – Guaranteed 100% score

CIS247 CIS 247 CIS/247 - CIS247B - Week 1 - Lab 1 - iLab 1- in Java – Guaranteed 100% score

$8.99

CIS247 Week 1 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. Their name, which will be a string data type
  2. Their age, which will be an integer data type
  3. The gas mileage for their car, which will be a double data type
  4. Display the collected information

Also, note that the program should contain a well documented program header.
Pseudocode
//Program Header
//Program Name: Basic User Interface
//Programmer: Your Name
//CIS247, Week 1 Lab
//Program Description: PROVIDE A DESCRIPTION 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 “Your car MPG is: “ + mileage
callterminateApplication
end main program
proceduredisplayApplicationInformation
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 and displays the results”
end procedure
proceduredisplayDivider(string outputTitle)
display “**************** “ + outputTitle + “****************”
end procedure
functiongetInput(string inputType) as string
strInput as string
display “Enter the “ + inputType
getstrInput
returnstrInput
end function
procedureterminateApplication
display “Thank you for using the Basic User Interface program”
exit application
end procedure

 

Solution for CIS247 Week 1 Lab 1 in Java

It is 100% correct solution

How to using solution?

Using any Java IDE (ex Eclipse or Netbean), copy all source codes to src folder, then open and run main class (File BasicUserInterface.Java).

If you have more questions, please contact me via email support@extutorials.com, i will help you any time

Thank you

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B