p2.COP2551.Spring2011

p2.COP2551.Spring2011 - Program #2 Introduction to OOP with...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Program #2 Introduction to OOP with Java COP 2551 – Spring 2011 Strings and Control Structures Objectives: Gain more experience with interactive programming (prompts and replies) Gaining experience in writing a Java program from scratch To gain experience with Strings and Control Structures To gain experience with validation of inputs To gain experience with loops and conditional expressions. Functionality: Design and implement a solution to the following specifications: Task 1 : Prompt the user for his;/her name (first and last). Be sure to get these in two separate prompts. Then, Task 2: Now, you are to first prompt the user for his/her classification as an integer: (1 = Freshman, 2 = Sophomore, …, 5 Graduate Student). From the input, determine the classification as a String. Task 3: You are to prompt the user to input three numbers (integers). You are to create the average of the three numbers. You are to specify in your prompt whether you want these three integers submitted one at a time or if you want to read all
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/26/2011 for the course COP 2551 taught by Professor Roggio,r during the Summer '08 term at UNF.

Page1 / 2

p2.COP2551.Spring2011 - Program #2 Introduction to OOP with...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online