Question
Offered Price $20.00

week2 ilab

Question # 00025921
Subject: Computer Science
Due on: 09/15/2014
Posted On: 09/14/2014 06:13 PM

Rating:
4.1/5
Expert tutors with experiences and qualities
Posted By
Best Tutors for school students, college students
Questions:
73
Tutorials:
0
Feedback Score:

Purchase it
Report this Question as Inappropriate
Question

iLAB OVERVIEW

Scenario and Summary

In this lab you will create programs that use control structures and user-defined methods.

Deliverables

Program files for each of the following three programs.

  1. Largest
  2. Palindrome
  3. Diamond

At the beginning of ALL your programs, put a comment box that includes the program name, your name, and a brief description of the program.

Example:

/***********************************************************************
Program Name: ProgramName.java
Programmer's Name: Student Name
Program Description: Describe here what this program will do
***********************************************************************/

How to submit your assignment:

  1. The programs MUST have the same names as the assignment title (Largest, Palindrome, Diamond).
  2. Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.
  3. In addition to the program source code files and byte code files, put all your program source code files and screen shots of your program output files into a Word document.
  4. You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place ALL of the .java and .class files for the week into the one zipped folder. The zip folder should be named: CIS355A_YourLastName_iLab_Week2, and this zip folder will contain all the weekly programming assignments.

iLAB STEPS

STEP 1: Largest (10 points)

.equella.ecollege.com/file/2e98bd22-ade2-4217-91af-1a6782185032/1/CIS355A_W2_iLab.html#top"> Back to Top

Write a Java application program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() method, no other user-defined method is required. Your program should use at least the following three variables

  1. counter: A counter to count to 10 (that is, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed);
  2. number: The current digit input to the program; and
  3. largest: The largest number found so far.

When each number is entered, make sure it is a single digit number, that is 0 to 9.

Grading Rubric

Largest Points Description
Standard header included 1 Must contain program's name, student name, and description of the program
Program compiles 2 Program does not have any error
Program executes 2 Program runs without any error
Only single digit numbers are entered 2 Program validates number entered is a single digit number
Program displays the largest number 3 Program displays the largest number after all 10 numbers are entered
Subtotal 10

STEP 2: Palindrome (15 points)

.equella.ecollege.com/file/2e98bd22-ade2-4217-91af-1a6782185032/1/CIS355A_W2_iLab.html#top"> Back to Top

A palindrome is a sequence of characters that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554, and 11611. Write an application called Palindrome.java that asks the user to enter in a five-digit integer and determines whether it is a palindrome. If the number is not five digits long, display an error message dialog indicating the problem to the user. When the user dismisses the error dialog, allow the user to enter a new value.

Your program will have the following four methods

  1. main() method, which controls the execution of the program;
  2. retrieveInput() method, which prompts and retrieves the input values;
  3. check() method, which determines whether it is a palindrome; and
  4. display() method, which displays the result.

Grading Rubric

Palindrome Points Description
Standard header included 1 Must contain program’s name, student name, and description of the program
Program compiles 1 Program does not have any error
Program executes 1 Program runs without any error
Program contains main method 1 Program contains main method
Program contains retrieveInput() method 2 retrieveInput method exists, retrieves the user input, and checks if input is numeric and has five digits
Program contains check() method 2 check method exists and checks if number entered is a palindrome
Program contains display() method 2 display method exists and displays the result if palindrome or not
Value entered is numeric and has 5 digits 2 Program validates input to make sure it is numeric and has five digits
Correct output is displayed 3 Program displays the correct message for the number entered
Subtotal 15

STEP 3: Diamond (15 points)

.equella.ecollege.com/file/2e98bd22-ade2-4217-91af-1a6782185032/1/CIS355A_W2_iLab.html#top"> Back to Top

Write a program called Diamond.java that uses a method diamondOfAsterisks() that displays a diamond (the row number of a diamond must be odd) of asterisks whose row is specified in an integer parameter row. For example, if the user enters a 7, then the diamond will have seven rows and the method will display the pattern of asterisks. Below is an example of the diamond displayed when 7 is entered.

*
***
*****
*******
*****
***
*

Grading Rubric

Diamond Points Description
Standard header included 1 Must contain program’s name, student name, and description of the program
Program compiles 1 Program does not have any error
Program executes 1 Program runs without any error
Program contains main method 2 Program contains the main method where user is asked to enter an odd number
Program contains diamondOfAsterisks() method 3 Program contains the diamondOfAsterisks method. This method contains the code that builds and displays the diamond based on the odd number entered.
Program asks for user input 2 User must enter an odd number
Program displays correct diamond 5 The diamond must have the number of rows entered by the user
Subtotal 15

Tags ilab week2 program method number diamond contains palindrome user entered largest displays description error input programs numbers main points files display folder student java digits example digit enter code contain

Tutorials for this Question
Available for
$28.00

CIS155 week 2 ilab

Tutorial # 00025301
Posted On: 09/14/2014 06:20 PM
Posted By:
Best Tutors for school students, college students mac123
Expert tutors with experiences and qualities
Questions:
4711
Tutorials:
6350
Feedback Score:
Report this Tutorial as Inappropriate
Tutorial Preview …CIS155…
Attachments
CIS155_.zip (0.48 KB)
Preview not available.
Purchase this Tutorial @ $28.00 *
* - Additional Paypal / Transaction Handling Fee (3.9% of Tutorial price + $0.30) applicable
Available for
$30.00

week2 ilab

Tutorial # 00025311
Posted On: 09/14/2014 11:16 PM
Posted By:
Best Tutors for school students, college students neil2103
Expert tutors with experiences and qualities
Questions:
9431
Tutorials:
13860
Feedback Score:
Report this Tutorial as Inappropriate
Tutorial Preview ……
Attachments
CIS155_.zip (0.48 KB)
Preview not available.
Cis155_week_2_ilab.zip (52.78 KB)
Preview not available.
Purchase this Tutorial @ $30.00 *
* - Additional Paypal / Transaction Handling Fee (3.9% of Tutorial price + $0.30) applicable
Loading...