3

More User Input of Data

 2 years ago
source link: http://programmingbydoing.com/a/more-user-input-of-data.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
More User Input of Data
  • Author: Graham Mitchell
  • Filename: MoreUserInputOfData.java

More User Input of Data

Ask the user for several pieces of information, and display them on the screen afterward as a summary.

  • first name
  • last name
  • grade (classification)
  • student id number
  • login name
  • GPA (0.0 to 4.0)

You must use the most appropriate type for each variable and not just Strings for everything.

Please enter the following information so I can sell it for a profit!

First name: Helena
Last name: Bonham-Carter
Grade (9-12): 12
Student ID: 453916
Login: bonham_453916
GPA (0.0-4.0): 3.73

Your information:
	Login: bonham_453916 
	ID:    453916 
	Name:  Bonham-Carter, Helena 
	GPA:   3.73 
	Grade: 12 

©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK