Develop Java applications based on the given scenarios: individual assignment

[ad_1]

Assessment type: Develop Java applications based on the given scenarios: individual assignment.
Purpose: This assessment will allow students to demonstrate their understanding of Java programming language covering all the concepts covered throughout the trimester and implementation of those concepts to develop a small java application based on the given specifications. This assessment contributes to learning outcomes c and d.
Value: 20%
Due Date: Week 10
Submission: Submit the completed program on Moodle by specified due date and time.
Task Details: You are required to complete 5 practical exercises in Java that covers main topics in your outline. This is individual assignment. The cut-off submission date and time for practical assignment will be 11pm on Sunday of the week 10. All java files will be needed to be saved in a single folder named as Student ID and Name to be submitted as single .zip file on course Moodle page.
Description: This is practical assignment covering programming concepts taught from week 1 – 9. You should submit all your class file on Moodle with .java extension in a single Zip/rar folder.
Question 1: Java Fundamentals (5 Points)
Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase: o The number of shares that Joe purchased was 1,000.
o When Joe purchased the stock, he paid $32.87 per share.
o Joe paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock.
Two weeks later Joe sold the stock. Here are the details of the sale:
o The number of shares that Joe sold was 1,000.
o He sold the stock for $33.92 per share.
o He paid his stockbroker another commission that amounted to 2% of the amount he received for the
stock.
Write a program that displays the following information:
o The amount of money Joe paid for the stock.
o The amount of commission Joe paid his broker when he bought the stock.
o The amount that Joe sold the stock for.
o The amount of commission Joe paid his broker when he sold the stock.
o Display the amount of profit that Joe made after selling his stock and paying the two commissions to
his broker. (If the amount of profit that your program displays is a negative number, then Joe lost money on the transaction.)
Question 2: Nested Loops (5 Points)
Write a program that use Nested Loop to collect data and calculate the average rainfall over a period of years. First the program should ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate 12 times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month. After all iterations, the program should display the number of months, the total inches of rainfall, the average rainfall per month for the entire period.
Input Validation: Do not accept a number less than 1 for the number of years, do not accept negative numbers for the monthly rainfall.

Question 3: 2D Array (5 Points)
Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are entered, the program should display the following data for each quarter:
o A list of the sales figures by division
o Each division’s increase or decrease from the previous quarter (this will not be displayed for the first quarter)
o The total sales for the quarter
o The company’s increase or decrease from the previous quarter (this will not be displayed for the first
quarter)
o The average sales for all divisions that quarter
o The division with the highest sales for that quarter Input Validation: Do not accept negative numbers
for sales figures.
Question 4: Strings (5 Points)
Write a program that has two parallel arrays of String objects. One of the arrays should hold people’s names and the other should hold their phone numbers.
Here are example contents of both arrays: name Array Example Contents
“Harrison, Rose” “James, Jean” “Smith, William” “Smith, Brad”
phone Array Example Contents
“555-2234” “555-9098” “555-1785”
“555-9224”
The program should ask the user to enter a name or the first few characters of a name to search for in the array. The program should display all of the names that match the user’s input and their corresponding phone numbers. For example, if the user enters “Smith”, the program should display the following names and phone numbers from the list:
Smith, William: 555-1785 Smith, Brad: 555-9224
Marking Guide: Students will be marked according to the implementation of the basic concepts covered in this subject. Some elements are of critical importance, and failure to identify and address these properly will result in low marks.

Marking Rubric Assessment :

Criteria Fail
(0 – 49%) Pass (50 – 64%)
Credit (65 – 74%)
Distinction (75 – 84%) High Distinction (85 – 100%)
%
Delivery No task submitted. Completed less than 50% of the requirements. Not submitted in correct format Completed between 5075% of the requirements. Submitted in correct format Completed between 7585% of the requirements. Submitted in correct format Completed between 8595% of the requirements. Submitted in correct format Completed between 95- 100% of the requirements. Submitted in correct format 3
Coding Standards No name, date, or assignment title included.
Poor use of white space
(indentation, blank lines). Disorganized and messy.
Poor use of variables (many global variables, ambiguous naming). Missing information on name, date, or assignment title included.
White space (indentation, blank lines) used properly. Organized work use of variables (many global variables, ambiguous naming). Includes name, date, and assignment title. White space makes program fairly
easy to read. Organized work. Good use of variables (few global
variables, unambiguous naming). Includes name, date, and assignment title. Good use of white space. Organized work. Good use of variables (no global
variables, unambiguous naming). Includes name, date, and assignment title. Excellent use of white space. Creatively organized work. Excellent use of
variables (no global variables, unambiguous naming). 3
Documentation No documentation included. Basic documentation has been completed Basic documentation has been completed including descriptions of all variables. Purpose is noted for each function. Clearly documented including descriptions of all variables. Specific purpose is noted for each function and control structure. Clearly and effectively documented including descriptions of all variables. Specific purpose is
noted for each function, control structure, input requirements, and output results. 3
Runtime Does not execute due to errors. User prompts are misleading or non- existent. No testing has been completed. Executes with some warning errors. Executes
without errors. User prompts
contain little information, poor design. Some testing has been completed. Executes
without errors.
User prompts are understandable, minimum use of symbols or spacing in output.
Thorough testing has been completed Executes without errors excellent user prompts, good use of symbols, spacing in output. Thorough and organized testing has been completed and output from test cases is included. 3
Efficiency A difficult and inefficient solution. A solution which provides
some answer but not efficient. A logical solution that is easy to follow but it is not the most efficient. Solution is efficient and easy to follow
(i.e. no
confusing tricks). Solution is efficient, easy to understand, and maintain. 3
Demonstration

Not given or shown irrelevant, incomplete or ambiguous functionality and features shown and discussed Some of the features and functionality are shown and discussed but some are incomplete

Most of the features and functionality are shown and discussed, are mostly complete All of the features and functionality are shown and discussed systematically All of the features and functionality are shown and discussed systematically with additional details 5

The post Develop Java applications based on the given scenarios: individual assignment appeared first on mynursinghomeworks.

[ad_2]

Source link