Preview

Assignment 2

Satisfactory Essays
Open Document
Open Document
338 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Assignment 2
Assignment #2*: Build A Report

Purpose: Exercise, use, Inputs, Outputs, and perform conditional evaluation

Due Date: 09-Feb-2015

Requirements: (Multiple classes/Multiple types of input)

Input: Report Owner’s full name and 7 numbers (at least one double and one integer)
The owner’s name can not contain any special characters, blank spaces, or numbers
You must use an if statement and at least one switch statement in your program
You are not allowed to have static variables or methods in any class except for the class with the main method.
You have to have at least 2 classes in your program
You are not allowed to use ArrayLists or Vectors, only primitive arrays or string arrays if you want.

Application Operation:

1.) Input, via a question in the console, the report owner’s first name as a string and build the last name via input, one character at a time.

Check, conditionally, to make sure the first name and last name don’t contain any numeric characters, numbers between 0 – 9. If it does you must remove it. The names can not contain any white space either or special characters.
2.) Input report name via a request from the console.

3.) Input, and display, the total of the numeric input after each input is entered. Average the numeric input, indicate lowest numeric input value and the highest numeric input value for the previous numeric inputs, before the next numeric input is asked for. (Example given in class)

4.) Have a program exit input, condition, value available (i.e. if you type -1 the program exists)

5.) Create and display a final report that should have the report name, owner and the following:

Numeric output should appear as a table with the following columns: (columns should be underlined)

Input Number
Highest Number
Lowest Number
Total (by the row)
Average Number
6.) At the end of the report you must have a grand total for the numeric entries

*The class outline (UML) is described in figure 5.2, which is

You May Also Find These Documents Helpful

  • Good Essays

    Mmp321

    • 1948 Words
    • 8 Pages

    Here insert specific details of the client, the purpose of the report, date of valuation, date of inspection, interest held, interest being valued and registered proprietors.…

    • 1948 Words
    • 8 Pages
    Good Essays
  • Powerful Essays

    5. The program shall allow the user to clear all the input fields and do the calculations over.…

    • 1488 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    It/210 Final Exam

    • 1235 Words
    • 5 Pages

    5. The program will allow the user to clear all the input fields and do the calculations over.…

    • 1235 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    You can't use a space, period (.), exclamation mark (!), or the characters @, &, $, # in the name.…

    • 368 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    For one of the reports listed, define the report, in terms of selection criteria, sort order, data elements and use of the report.…

    • 692 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Programing Problems

    • 721 Words
    • 3 Pages

    Display “Player Two’s Average score is”PlayerTwoAvg“.” Display “The combined average of the games is”GameAverage “.” End Display Module Programming Problem 5 Main Module Declare LoanAmt…

    • 721 Words
    • 3 Pages
    Good Essays
  • Good Essays

    proceed to present your results. The following questions should be addressed in your report, and…

    • 634 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Windshield Survey Report

    • 3205 Words
    • 13 Pages

    Record the data you collect into the following tables. The tables will expand as you type.…

    • 3205 Words
    • 13 Pages
    Powerful Essays
  • Better Essays

    assignment 2

    • 1012 Words
    • 3 Pages

    Business Ethics Did Glenn act ethically in this case? Would Mary have acted unethically if she had actually orally guaranteed to repay her husband’s debts and then raised the Statute of Frauds to prevent enforcement of the oral promises?…

    • 1012 Words
    • 3 Pages
    Better Essays
  • Powerful Essays

    Ss2 Assesment

    • 1737 Words
    • 7 Pages

    1.1 Identify what numerical and other information is needed in the spreadsheet and how it should be structured…

    • 1737 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    ACL 9 Quick Guide

    • 5406 Words
    • 45 Pages

    ACL 9|Quick Guide V02.4 Contents Introduction ................................................................................................................................................................................................................................................... 3 ACL User Interface Overview ....................................................................................................................................................................................................................... 4 Common Data Types in ACL ........................................................................................................................................................................................................................ 5 ACL Command Reference ........................................................................................................................................................................................................................... 6 ACL Command Terminology ........................................................................................................................................................................................................................…

    • 5406 Words
    • 45 Pages
    Powerful Essays
  • Good Essays

    C++ Lab Session

    • 868 Words
    • 4 Pages

    Given the following classes, write the implementation codes and the driver program to demonstrate inheritance using C++. You may add other appropriate member functions and / or data members.…

    • 868 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Socket Programming

    • 1283 Words
    • 6 Pages

    – – – – – – – – – – – – file : load the program for debugging kill : stop the program for debugging list : list the source code of the program for debugging break : set a break point in the source program run : run the program to be debugged next : execute a single line of the program, but not go into it step : execute a single line of the program, but go into it quit : quit the gdb to shell print : display the…

    • 1283 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    Steps in Making a Business Report Copyright © Wondershare Software STEP 1: DEFINING AND ANALYZING THE PROBLEM POINTS TO CONSIDER:…

    • 2401 Words
    • 19 Pages
    Powerful Essays

Related Topics