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

  What alternative approaches were considered

What alternative approaches were considered and why were they rejected and What did you learn from doing this project and what would you do differently

  Prepare an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You will store this Array with 10 messages of your choosing. For example, a message could be "I love Java the programming language!"

  Calculate the largest divide by the smallest number

Please also calculate the largest divide by the smallest number provide the quotient and remainder and also put the information as a string on the applet. All the numbers will presented in two decimal places.

  Question 1a give explanation why it is significant to

question 1a give explanation why it is significant to follow web engineering principles taking into account how the web

  Write program in java that solves system of linear equations

Write a program in java that solves system of linear equations. Users should be able to input the number of variables.

  Develop a similar class hierarchy for pets.

Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see here:

  Write a program that converts number from binary to decimal

write a program that Converts a Number from Binary to Decimal  by using reading keyboard input.

  Calculate payroll for department and employee

Build an application that would allow the end-user to calculate an Employee's Gross Pay and the Department's average Gross Pay Report.

  Summarize the major security concerns associated

Summarize the major security concerns associated with these systems and steps than can be taken to enhance their security.

  Create a tic-tac-toe

create a tic-tac-toe

  Define a class called counter

Define a class called Counter. An object of this class is used to count things, so it records a count that is a non negative whole number. Include methods to set the counter to 0, to increase the count by

  Which reverses the order of an arrays elements

Write a method named, reverse, which reverses the order of an array's elements without creating another array - elements and then verify the array elements

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