PowerPoint Presentation Assignment 2 Discussion (1) Due: Thursday 10/15, Points: 30 Oct. 7, 2020 Poly morphism Class Inheritance Constructor Overriding Encap sulation Abstract You now are ready to...

1 answer below »


all of the information is in attached ppt but if you need more info,
https://docs.google.com/presentation/d/173dlKh3xp2Ju2qkE8o9b0p69W6Bsv_8Uc6H_Hx52v7E/edit?usp=sharing



PowerPoint Presentation Assignment 2 Discussion (1) Due: Thursday 10/15, Points: 30 Oct. 7, 2020 Poly morphism Class Inheritance Constructor Overriding Encap sulation Abstract You now are ready to develop real-world Apps. We have studied Real-World App You are the CEO of Burger211 Inc. About Burger211 Company Burger211 manages 1000+ shops in different countries. Burger211 sells 3 burgers: inheritance Burger, overriding Burger and polymorphism Burger. All 3 burgers have a name, price in US$ and toppings. These values were decided by the HQ in advance. Each country displays their own style of menu because of different language, price, currency and culture. All the Buger211 shops in the same country display the same format of menu at their shops. Menu contains the shop name, all 3 burger names, their prices, and their toppings and promotion information. The prices should be displayed in their own currency. (eg: price of an inheritance burger is $3.0, your country’s exchange rate is 500 and use €, price of the burger is € 1500) If the country promotes a special event, all the Burger211 shops in the country participate to the promotion event. eg) During the coronavirus pandemic, price of all the burgers are 50% off at all the Burger211 shops in USA. If people in the country never eat chicken meat, you can remove chicken from the toppings. Your second assignment is to develop an app for CS211 Inc. Desired Output 5 Menu.java (GUI) Super class Burger211.java USA.java anyCountry.java myBurger211.java (Main program) GUI interface is provided. System Structure extends extends Requirements. (must include) 2 countries (USA + one more country) and 2 franchises to each country. abstract class inheritance constructor run-time Polymorphism encapsulation overriding print menu for each franchise. Submit these 4 files Super class Burger211.java USA.java anyCountry.java myBurger211.java (Main program) public class burger211 { public static void main(String[] args) { String franchiseName; String Burger1Name = “inheritance Burger"; String Burger2Name = “overriding Burger"; String Burger3Name = “polymorphism Burger"; String Burger1Topping = “beef patty, tomato, onion, ranch source"; String Burger2Topping = “beef patty, lime, onion, lettuce, tomato source"; String Burger3Topping = “chicken breast, gallo, onion, ranch source"; Double Burger1Price=3.0; Double Burger2Price=2.0; Double Burger3Price=3.5; franchiseName = “Bellevue”; System.out.println(franchiseName); System.out.println(Burger1Name + “ : “ + Burger1Price); System.out.println(Burger1Layer); System.out.println(Burger2Name + “ : “ + Burger2Price); System.out.println(Burger2Layer); System.out.println(Burger3Name + “ : “ + Burger3Price); System.out.println(Burger3Layer); franchiseName = “Seattle”; System.out.println(franchiseName); System.out.println(Burger1Name + “ : “ + Burger1Price); System.out.println(Burger1Layer); System.out.println(Burger2Name + “ : “ + Burger2Price); System.out.println(Burger1Layer); System.out.println(Burger3Name + “ : “ + Burger3Price); System.out.println(Burger1Layer); . . . } } 1,000+ Franchises!! silly guy 8 Base image: https://dlpng.com/ 9 We will learn how to develop the system tomorrow. But think about your approach today.
Answered Same DayOct 15, 2021

Answer To: PowerPoint Presentation Assignment 2 Discussion (1) Due: Thursday 10/15, Points: 30 Oct. 7, 2020...

Mohd answered on Oct 16 2021
155 Votes
Assignment 2/.classpath

    
    
    
Assignment 2/.project

     Assignment 2
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            
        
    
    
         org.eclipse.jdt.core.javanature
    
Assignment 2/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.versi
on=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Assignment 2/a.png
Assignment 2/b.png
Assignment 2/bin/Burger211.class
public abstract synchronized class Burger211 {
private String name;
private double price;
private String topping;
public void Burger211();
public void Burger211(String, double, String);
public String getName();
public void setName(String);
public double getPrice();
public void setPrice(double);
public String getTopping();
public void setTopping(String);
}
Assignment 2/bin/EURO.class
public synchronized class EURO extends Burger211 {
private String franchisesName;
public void EURO(String, double, String, String);
public void EURO();
public String getFranchisesName();
public void setFranchisesName(String);
}
Assignment 2/bin/Menu.class
public synchronized class Menu extends javax.swing.JFrame {
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
public void Menu();
private void initComponents();
public static void main(String[]);
}
Assignment 2/bin/myBurger211.class
public synchronized class myBurger211 {
public void myBurger211();
}
Assignment 2/bin/USA.class
public synchronized class USA extends Burger211 {
private String franchisesName;
public void USA();
public void USA(String, double, String, String);
public String getFranchisesName();
public void setFranchisesName(String);
}
Assignment 2/c.png
Assignment 2/src/Burger211.java
Assignment...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here