Codingassignmenthelper | Home Codingassignmenthelper | University

COIT 11222 Assessment item 1 java console program

Assignment :

Objectives

This assessment item relates to the unit learning outcomes as in the Unit Profile.

Details

For this assignment, you are required to develop Java Console Programs to demonstrate you can use Java constructs including input/output via a command line and using GUI dialogs, Java primitive and built-in data types, Java defined objects, selection and looping statements, methods, and various other Java commands. Your program must produce the correct results.
You are only allowed to use techniques which have been covered in the first five weeks of the subject and within the assignment literature, you must use a Scanner object for console input and no advanced data structures like arrays will be used.

What to submit for this assignment

The Java source code :
You will be able to complete the assignment in weekly parts in which you will produce five java source files. (More details below)

Week1.java, Week2.java, Week3.java, Week4.java and Week5.java.

Once you have completed all of the programs and you are ready to submit, compress all source files into a single zip file for submission, do not include your report in the zip file. Only submit a zip not a rar file. It is important the file names are correct.
Ass1.zip Also submit a report including, how long it took to create the programs (approximately), any problems encountered and screen shots of the output produced. (Use Alt-PrtScrn to capture just the console window or your dialogs and you can paste them into your Word document) You should test every possibility in the program and annotate your test screen shots.
ReportAss1.docx You will submit your files by the due date using the “Assignment 1 Submission” link on the Moodle unit website in the Assessment Block or in the relevant week.

Assignment Specification

This assignment will require you to write small five programs, do not panic! They will be small programs which will cover the first five weekly topics. Usually students were required to write one largish program to demonstrate the topics for the first five weeks. Students get themselves into trouble when the first assignment is due as they have not practiced the basics skills necessary to complete the assignment. With the assignment divided into five programs you can complete each question as we cover the weekly topics, do not let yourself fall behind.
General Instructions Each program must contain a header comment which contains: Your name and student number, the name of the file, the date and a brief description of the purpose of the program:

// Programmer: Eric Gen S01234567
// File: Week1.java
// Date: April 26 2019
// Purpose: COIT11222 assignment one question one T119
// Use println method to print initials using asterisks

All programs will be aligned and indented correctly, and contains relevant comments for declarations and statements. All variables and objects will be declared with a meaningful name and use lowercase camel notation:

String customerName;

All coding will be contained within a main method except for question five when a method will be created and used.
For this assignment you will not worry about checking numeric ranges or data types.

Refer to a Java reference textbook and the unit material (available on the unit WEBsite) for further information about the Java programming topics required to complete this assignment.

Check the marking guide (last page) to ensure you have completed every task. You need to match all output exactly as the sample screenshots shown below.
Distance and Melbourne students can email questions directly to me, other campus students should seek help from your local tutor, and you can still contact me if it is urgent, I usually respond to emails very promptly.
b.mckenzie@cqu.edu.au

Question one (week one topic). Writing output to the screen

Once you have written your first “Hello World” program you will be able to complete question one.

Implementation

Create a class called Week1 (file: Week1.java) and within it a main method.
Use the command System.out.println(""); to print out the first initial of your first and last names as a matrix of asterisks.
For example this is my first and last initials printed.

Image1

The first line of asterisks is printed with this command:
System.out.println("****** * *");

You may need to use some graph paper to plot where you need to print your asterisks
If you like you could submit a picture. An attempt at Mickey Mouse! Just do your initials as it takes a while to create a picture.

Image1

Question two (week 2 topics) Input of data types and arithmetic expressions

Rocky Dry Cleaners program
Rocky Dry Cleaners are requesting a program which allows staff to input a customer’s name and the number of plain garments to be dry cleaned. For simplicity we are only considering plain garments which include shirts, trousers, dresses and jackets etc. The program will compute the cost of the order at $8.50 per garment, you should store this value as a constant.
This program will prompt for and read in a customer name using a Scanner object.
The customer name will be stored in a String object.
The program will then output the customer name in a prompt to read in the number of garments to be cleaned (as a whole number i.e. an integer).
Finally the program will display the receipt for the customer.
You need to replicate the output exactly as shown below, including the correct line spacing.

Image1

To Continue Click Here > COIT 11222 Assessment item 1 java console program.pdf
Codingassignmenthelper | Home Codingassignmenthelper | Home