Develop Java Console Programs

Assignment Help JAVA Programming
Reference no: EM132285528

Programming Fundamentals Assignment - Java Console Program

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 are in attached file).

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.

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.

Assignment specification -

This assignment will require you to write small five programs. 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.

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.

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.

Question three (week three topics) Decision statements

The management of Rocky Dry Cleaners would like to encourage customers to get more garments dry cleaned and to possibly get new customers. It has been decided to offer as a special, three garments to be dry cleaned for $20.00 which would be a saving of $5.50 and any subsequent garments in the order would be $6.50 per garment.

In summary:

One to two garments: $8.50 per garment.

Three garments: $20.00.

More than three garments: $20.00 plus $6.50 per garment after that.

Create a class Week3 (file: Week3.java) and a main method and copy your code from question two into the main method of week three main.

After you have read the relevant details of the order i.e. name and number of garments, you will have to create a series of if - else if statements to calculate the final charge.

For over three garments;

charge = three garments charge + (number of garments - 3) * charge over three

When you have calculated the total charge output a receipt as you have done in week two code.

Note: you must use constants for all the numeric literals in the else if statements.

Your output needs to match exactly the output as shown in attached file.

Question four (week four topics) Repetition while and for loops

Create a class Week4 (file:Week4.java) to demonstrate the use of a repetition statement.

Question five (week five topics) Methods and GUI I/O

Create a class Week5 (file:Week5.java) by using your solution to question four. This question is identical to question four as the program will read in N customer names and number of garments and calculate the charges for the orders, however we are going to create a method to calculate the charges and we will be using GUI dialog boxes for our I/O.

Attachment:- Assignment Files.rar

Reference no: EM132285528

Questions Cloud

Year bonds are paying a rate of return : One year bonds are paying a rate of return of 2%, while two year bonds are paying a rate of 4%. The US government issues 2-year bonds to borrow
Money supply per person is necessary to do so : Suppose the fed wants to reduce the interest rate to 2%. How much of an increase in money supply per person is necessary to do so?
What did you learn from this negotiation : What influence strategies did your team use in the negotiation? What did you learn from this negotiation?
English common law and islamic transactional law : What is difference between English common law and Islamic transactional law? What makes Islamic law similar to the common law than the civil law
Develop Java Console Programs : COIT11222 - Programming Fundamentals Assignment - Java Console Program, CQ University, Australia. Develop Java Console Programs
Describe competency level used for your learning outcomes : Describe the competency level used for your learning outcomes. Justify the appropriateness of each learning verb. Explain how these learning outcomes align.
What is the overall impact in the economy : What is the overall impact in the economy? Is the benefit greater than the cost?
Discuss your teams initial search for relevant literature : HI6008 Business Research Project - Holmes Institute - Discuss your team's initial search for relevant literature and show that it has provided you with a good
Internal rate of return to determine : A printed circuit board manufacturer will construct a new plant. The potential sites have the following estimates of income and cost

Reviews

len2285528

4/16/2019 11:25:35 PM

This assignment will require you to write small five programs, do not panic! 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. 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.

len2285528

4/16/2019 11:25:29 PM

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. 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.

len2285528

4/16/2019 11:25:22 PM

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. 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.

len2285528

4/16/2019 11:25:17 PM

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 WEB site) 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. Good luck.

Write a Review

JAVA Programming Questions & Answers

  Discuss how an interface differs from a class

Discuss how an interface differs from a class, how interfaces are defined, and what does implementing an interface mean.

  What are differences between trusted and untrusted applets

What are the differences between trusted and untrusted applets? Why doesn't an applet viewed through the browser respond to keyboard events, but the same works fine from within appletviewer?

  Write down all the three object-oriented programming

Write down all the three object-oriented programming principles. Write down any two the control statements. Give brief description about Boolean data type with one example.

  Create an algorithm in java

Create an algorithm in java which will provide the Dijkstras shortest path in a graph provided by the user - The output should display the shortest path.

  Write a recursive java method that will rearrange an array

Write a short recursive Java method that will rearrange an array of int values so that all the even values appear before all the odd values.

  Calculate the vertical and horizontal components of u

Calculate the vertical and horizontal components of u (the launch velocity) using the following trigonometric identities:

  Represents a phone book

Imagine you have a Map that represents a phone book. Until now, you stored all (US) phone numbers as the usual 10 digit number.

  Implement a stack class

The backtracking algorithm needs a stack, you should implement a stack class. Each item in the stack is the position of a cell in the maze --- that is, the row and column number of the cell.

  Make a row with different string names

How do you make a row with different string names and put a certain amount of space between each one?

  Prepare a program for sorted list

Code a doubly links, sorted list (in ascending order). Each item of the list will just store int. You need to code three classes: Node, SortedList, and GroupProject

  Trade-offs between quantity and quality of production

Are there inevitable trade-offs between quantity and quality of production and in what ways can job analysis and job redesign help manage there trade-offs?

  Determine the best way to gather business rules

You have been hired by Happy Health to determine the best way to gather business rules for a new phone system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd