CSE1OOF Object-Oriented Programming Fundamentals Assignment

Assignment Help JAVA Programming
Reference no: EM132418558

CSE1OOF - Object-Oriented Programming Fundamentals - La Trobe University

Task 1 - Order.java

Background - Task 1 - Order (do-while practice)
You are tasked with writing a program that totals the number of cakes ordered in a day.

Follow the steps to complete the task using the steps and information above. (Note indentation indicates that the indented parts are contained within the previous step. Eg. All steps within an if statement are indented)

1. The program prints to the screen the student name and student number. This is enclosed by triple asterisks. Ensure you follow the below format.

(Replace with your details)
2. The program asks the user for the order.
a. The order is a String in the format:
#TypeA#TypeB#TypeC

# Indicates the number of cakes from 1 - 9 that will be ordered of TypeX cake There are three types of cake (guaranteed):
Cheese Choc Butter
There may be one, two or three types of cakes in a single order Examples:
6Butter2Choc
6 Butter cakes, 2 Chocolate cakes 3Choc2Butter1Cheese
3 Chocolate cakes, 2 Butter cakes, and 1 Cheese cake

3. The program adds the number of cakes from the order to the total number of each type of cake
a. Note: The following methods will be helpful:
i. contains()
ii. indexOf()
iii. charAt()
b. To convert the character '1' to '9' into an integer value, follow the steps below:
i. Read the character at the index you want
ii. Subtract '0' from this character to get its integer value, and store appropriately
iii. Do not use any method that has not been covered.
4. The program asks the user if there are more orders (true or false)
5. If there are more orders return to step 2 (loop)
6. Print the total number of cakes

Task 2 - Reciept.java
Background - Task 2 - Reciept (for, printf practice)
You are tasked with writing a program to find the orders in a file and then print the items and total price. The file contains all orders, you should not print them all.

1. The program prints to the screen the student name and student number. This is enclosed by triple asterisks. Ensure you follow the below format.

(Replace with your details)
2. The program then asks the user to enter a file name
3. The program opens the file with given file name
4. The program asks the user where the order starts
5. The program asks how many cakes were ordered
6. Using a loop, skip over the lines in the file to reach the start of the order.
a. Hint, you do not need to store the data
7. For the number of cakes:
a. Read the price as a double
b. Read the cake type as a String (May be any number of words)
c. Print the cake number starting from 1, cake type and the price (to two decimal places
8. Print the total price

Task 3 - Decoration.java
You are tasked with writing a program to print the decoration for a cake

Follow the steps to complete the task using the steps and information above. (Note indentation indicates that the indented parts are contained or related to the previous step. Eg. All steps within an if statement are indented)
1. The program prints to the screen the student name and student number. This is enclosed by triple asterisks. Ensure you follow the below format.

(Replace with your details)
2. The program asks the user for the size of the cake as an integer
a. If the user enters a value less than 3, ask them to reenter until they enter a valid value
3. The program asks the user for the decoration on the cake as a char
4. The program should print a diamond using the decoration and size selected: Examples are shown in the output and should match your output:
This are only examples and any valid size should work The height is size*2-1
The width is size*2-1

Task 4 - DecorationExtended.java

You are tasked with writing a program to extend the functionality off the previous task. The cake in this task has two decorations, that alternate each line.
Further, the diamond is an outline, rather than solid.

Note: This task reuses parts from previous tasks

1. The program prints to the screen the student name and student number. This is enclosed by triple asterisks. Ensure you follow the below format.

(Replace with your details)
2. The program asks the user for the size of the cake as an integer
a. If the user enters a value less than 3, ask them to reenter until they enter a valid value
3. The program asks the user for the decoration on the cake as a char
4. The program asks the user for the second decoration on the cake as a char
5. The program should print a hollow diamond using the decorations and size selected: Examples are shown in the output and should match your output:
This are only examples and any valid size should work The height is size*2-1
The width is size*2-1

Attachment:- Object-Oriented Programming.rar

Reference no: EM132418558

Questions Cloud

Is team supervision valid approach in world of corrections : Do you feel that the Model Case Management System established in 1981 by the National Institute of Corrections is effective based upon today's offenders?
Create a data flow diagram of the current system : Create a data flow diagram of the current system. Analyze the physical internal control weaknesses in the system.
Explain decision using the ethical system : Your first big case is a multiple murder. As the defense attorney, you have come to the realization that your client really did break into a couple's home.
Describe ethical models to the potential problem of judges : Apply ethical models to the potential problem of judges disciplining attorneys. Do these models support the continued paradigm of judges disciplining lawyers?
CSE1OOF Object-Oriented Programming Fundamentals Assignment : CSE1OOF Object-Oriented Programming Fundamentals Assignment Help and Solution, La Trobe University - Assessment Writing Service - writing a program that totals
How effective are us fusion centers : In the wake of the terrorist attacks in September 2001, the 9/11 Commission recommended that the U.S. Intelligence Community (USIC) find a way to improve.
How a criminal personality is developed : Describe, in your opinion, how a criminal personality is developed. No sources are required for this section. Assume class division in society causes crime.
Describe the comparative criminal justice system : Explain the differences between a comparative criminal justice system and international justice system and how they are applied.
Describe period where organization definitely could engaged : Think about an organization with which you are currently involved (Sheriff Department). Describe a period where the organization definitely could have engaged.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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