Skip to content
Home » This Programming Assignment Will Utilize Object Oriented Principles To Develop An Application Called DessertShop.

This Programming Assignment Will Utilize Object Oriented Principles To Develop An Application Called DessertShop.

    I don’t know how to handle this Java question and need guidance.

    Develop an application that manages the orders for a dessert shop. You will be implementing an abstract parent class (DessertItem) and the necessary derived classes (Candy, Cookie, and IceCream) using Inheritance. Be sure constructors for the derived classes call the appropriate constructor of the super class. You will also implement a DessertShop class that will act as a container for the other classes. This is outlined further in the steps below.

    1. Create a NetBeans project called CS182Project2

    2. Before writing any code, review the required attributes and properties for each class required in this project and create a UML class model. You may use the online tool draw.io. Be sure to save your completed model as either a jpeg image or PDF document in your project 2 folder. Give it an obvious name like Project2ClassModels and make sure it is in your top level Project2 folder so I can find it. Also, be sure you are showing class relationships (I.e., inheritance).

    3. Implement an abstract parent class called DessertItem with only one attribute called itemName. It must have a default constructor and a custom constructor that will pass the name of the item. It must have a getter and setter method for itemName and an abstract method called getCost(). Implement a toString() method that returns the itemName.

    4. Implement a Candy class derived from DessertItem with the added attributes of weight and pricePerPound, default and custom constructors, getters and setters for weight and pricePerPound. Implement the following methods: getSubtotal() will return weight * costPerPound; getTax() will return the sales tax (7% sales tax rate) on the subtotal; getTotal() will return subtotal + sales tax. Implement a toString() method that returns the formatted output of the item and total price.

    5. Implement a Cookie class derived from DessertItem with the added attributes of itemCount and pricePerItem, along with default and custom constructors, getters and setters for itemCount and pricePerItem, Implement the following methods: getSubtotal() will return itemCount * pricePerItem; getTax() will return the sales tax (7% sales tax rate) on the subtotal; getTotal() will return subtotal + sales tax. Implement a toString() method that returns the formatted output of the item and total price.

    6. Implement an IceCream class derived from DessertItem with the added attributes of numSccoops, pricePerScoop and toppingCost, along with default and custom constructors, getters and setters for numSccoops, pricePerScoop and toppingCost. , Implement the following methods: getSubtotal() will return itemCount * pricePerItem; getTax() will simply return 0 (no sales tax on ice cream); getTotal() will return subtotal + sales tax. Implement a toString() method that returns the formatted output of the item and total price.

    7. Implement a DessertShop class which will utilize the Candy, Cookie and IceCream classes. This class will declare an enumerated type ‘DessertType’, which will be used in a selection structure to determine which action needs to be taken.depending on the DessertType. The class must define a total of three arrays (one for each DessertType – cookie, candy, ice cream), which can store up to 5 items each and counters to track the number of items in each array, and internal variables for subtotal, total tax and total of all items. In addition to the constructors, setter and getter methods, the DessertShop class will contain the following public methods: getDessertChoice() – this method must clearly prompt the user for the choice of none (order complete), cookie, candy, ice cream and return the enumerated dessert type. addCookie() – this method must prompt the user for the required cookie information (I.e., type of cookie, qty and price each), create a cookie object, add it to the cookie array and update the various totals. addIceCream() – this method must prompt the user for the required ice cream information, create an ice cream object, add it to the ice cream array and update the various totals.

    3

    addCandy() – this method must prompt the user for the required candy information, create a candy object, add it to the candy array and update the various totals. displayReceipt() – will display the receipt. See sample program output section for layout and items that must be displayed. saveReceiptToFile() – will save the receipt information to a text file called receipt.txt. It will contain the exact same information as displayReceipt(). the program should prompt for specific details in order to calculate the price for each item. If Candy, prompt for Name of Candy, Number of Pounds and Price per Pound. If Cookie, Prompt for Name of Cookie, Number of Cookies and Price per item. If IceCream, prompt for Name of Ice Cream, Number of Scoops, Price per Scoop and Topping Price.

    8. Implement a cash register application. Your main() method will create an instance of the DessertShop class and use the various methods to get order information, and, when the order is complete, display the receipt on the screen and save the receipt to a text file.

    9. Once everything is complete and working, generate a JavaDoc. To do this, right-click your project icon and select Generate Javadoc in the pop-up menu.CSCI web design javascript coding website: online nursing assignment help
    I need support with this Javascript question so I can learn better.

    the details of description is ON https://www.youtube.com/watch?v=9VEYmZHt9DA
    Download the compressed folder and extract it in your computer. Important — Do not modify the HTML or CSS files given in the package. If you are expected to add styles, you should add it in another stylesheet. Create a folder named js inside the folder named www. Inside this, create a file named script.js — all your JavaScript must be included in this file.
    STEP 2: Implement the following user story, based on the goals and acceptance criteria for all scenarios specified below (all must be implemented using JavaScript — do not edit the HTML or CSS files):
    User Story:
    As an expert web site user,I want to make a message form appear when I click a button,So that I can see the message form and send a message through this form only when I need to (i.e. on demand). Acceptance Criteria (for specific scenarios):
    Scenario 1: User clicks on the “Send Message to Yoda” button.
    The message form is displayed below the “Send Message to Yoda” button. The “Send Message to Yoda” button becomes inactive.
    Scenario 2: User clicks on the “Send Message Now” button in the message form.
    Values from the fields (or form widgets) are validated (see below for expectation). Form data validation:|– (a) Email addresses should always be of this format: @.ca — and must support any value submitted by the user; the address must end with .ca
    |– (b) All form fields must have a non-empty value; i.e. empty string is not valid.

    |– (c) If there is any error, display a message below the form (in red colour) saying that there is an error in the form value. If all fields have expected values, values from the fields must be displayed through an alert dialog — one field value on each line. After displaying the alert dialog with the values, the form must be cleared, i.e. all content from the form fields must be removed. After displaying the alert dialog, the form must be removed and the “Send Message to Yoda” button must be enabled again. Use JavaScript only for coding this You must not edit HTML or CSS files.
    Note — if you would like to style the form, you must create a new CSS file named formStyles.css and style the form/form widgets in this file. Only in this case, you are allowed to add a single line of markup to the HTML to link this new CSS file to the HTML file.
    You must create the form element and the form widgets (e.g. text input, submit button, etc.) all using JavaScript, and add this new form to the HTML using JavaScript when the button is clicked.c++ Assignmnet
    Help me study for my C Programming class. I’m stuck and don’t understand.

    this is my c++ Assignment. my professor is very detailed and strict person. so please do everything as instructed. i will upload the whole assignmnet details below. do ur best . thankyou

    How to create Testimonial Carousel using Bootstrap5

    Clients' Reviews about Our Services