Free Essay

Pizza Applet

In:

Submitted By osucubs
Words 433
Pages 2
class Untitled { public static void main(String[] args) { ** * Write a description of class PizzaApplet here. * * @author (zhencee) * @version (aversionnumberoradate) */

import java.awt.*; import java.awt.event.*;

public class PizzaApp extends Frame {

Frame f1 = new Frame();

Panel p1 = new Panel(); Panel p2 = new Panel(); Panel p3 = new Panel(); Panel p4 = new Panel(); Panel p5 = new Panel(); Panel p6 = new Panel(); Panel p7 = new Panel(); Label cashierName = new Label("Cashier Name:"); Label customerName = new Label("Customer Name"); Label Style = new Label("Style"); Label Option = new Label("Options"); Label Extras = new Label("Extras"); Label Size = new Label("Size"); Label Dine = new Label("Dine 0r Take Out"); Label Total = new Label("Total"); Label Change = new Label("Change"); Label cashTendered = new Label("Cash Tendered"); Label ricky = new Label("ZhensitivO_08@yahoo.com"); TextArea tArea1 = new TextArea("Transaction Registered");

Choice choice = new Choice(); Checkbox Cheese = new Checkbox("Cheese"); Checkbox Pepperoni = new Checkbox("Pepperoni"); Checkbox Mushroom = new Checkbox("Mushroom"); Checkbox Pineapple = new Checkbox("Pineapple"); Checkbox greenPepper = new Checkbox("Green Pepper"); TextField tf1CashierName = new TextField("zhencee"); TextField tf1CustomerName = new TextField(""); TextField tfTotal = new TextField(""); TextField tfChange = new TextField(""); TextField tfTendered = new TextField(""); Button b1 = new Button("Compute"); Button b2 = new Button("Change"); Button b3 = new Button("Print Receipt:");

public PizzaApp() { p1.setLayout(new GridLayout(3, 2)); p2.setLayout(new GridLayout(7, 1)); p3.setLayout(new GridLayout(7, 1)); p4.setLayout(new GridLayout(7, 1)); p5.setLayout(new GridLayout(1, 1)); p6.setLayout(new GridLayout(2, 5)); p7.setLayout(new GridLayout(1, 4));

p1.add(cashierName); p1.add(tf1CashierName); p1.add(customerName); p1.add(tf1CustomerName); p1.add(Style); p1.add(choice);

choice.add("-Select Pizza-"); choice.add("Garden Fresh"); choice.add("Super Supreme"); choice.add("hawaiian"); choice.add("Meat Lovers");

p2.add(Option); p3.add(Extras); p3.add(Cheese); p3.add(Pepperoni); p3.add(Mushroom); p3.add(Pineapple); p3.add(greenPepper); p4.add(Size);

CheckboxGroup cbg = new CheckboxGroup(); p4.add(new Checkbox("Single", cbg, true)); p4.add(new Checkbox("Double", cbg, false)); p4.add(new Checkbox("Family", cbg, false)); p4.add(Dine);

CheckboxGroup cbg2 = new CheckboxGroup(); p4.add(new Checkbox("Dine-in", cbg, false)); p4.add(new Checkbox("Take-out", cbg, false)); p5.add(tArea1); p6.add(b1); p6.add(Total); p6.add(tfTotal); p6.add(cashTendered); p6.add(tfTendered); p6.add(b2); p6.add(Change); p6.add(tfChange); p6.add(b3); p6.add(ricky); p7.add(p2); p7.add(p3); p7.add(p4); p7.add(p5); this.add(p1, "North"); this.add(p7, "Center"); this.setSize(300, 300); this.setLocation(300, 300); this.setTitle("PizzaApp"); this.setVisible(true); this.add(p6, "South"); }

public static void main(String args[]) { PizzaApp Layout = new PizzaApp(); } } }
}

Similar Documents

Free Essay

None

...COMPUTER GRAPHICS Using Java CS 171G Outline • Terminology • Java Graphics Coordinate System • Java Applets • Drawing a Line • Changing the Color • Designing Your Own Colors • Drawing other shapes: rectangles, ovals, arcs, and polygons 1 Terminology: pixel • A pixel is the smallest visual element on a computer screen. Essentially, it’s a dot. • The image shown here is the letter S drawn in an area of 20 X 20 square pixels • The more pixels in an image, the smoother the image will appear. Terminology: resolution • Resolution: the number of pixels that can be displayed on a computer monitor. • When the resolution of a monitor is increased, pixels are smaller and closer together, so images appear smaller. • Typical computer monitor and HD television screen resolutions these days are • 720p: means 1366 pixels across by 768 pixels down • 900p: means 1600 pixels across by 900 pixels down • 1080p: means 1920 pixels across by 1080 pixels down All of the above are used in HDTVs and newer LCD displays (computer screens). 2 Resolution: Example of 900p 1600 pixels 900 pixels This screen has a total of 1,440,000 pixels Cartesian Coordinates • In math class, you learned about the Cartesian coordinate system. – Uses X (horizontal) and Y (vertical) axes – (0, 0) is at the center (also called the origin) – An increase in X means moving to the right – An increase in Y means moving up. – The Cartesian coordinate system has both positive and negative...

Words: 1930 - Pages: 8

Free Essay

Building a Virtual Exhibition: the Honan Collection Online

...Building a virtual exhibition: The Honan Collection Online James Cronin, Daniel C. Doolan and Xiaoye Dai Introduction The chapel of St. Finbarr, known as the Honan Chapel, on the grounds of University College Cork is celebrating its 90th anniversary in 2006. It was consecrated in November 1916. The chapel is central to the history of the Irish Arts & Crafts movement (1894-1925). Its furnishings and liturgical collection feature the work of many of the movement’s major artists and designers. The chapel features the earliest commission for Harry Clarke’s stained glass. This project, Honan Collection Online, aims to build upon recent scholarship by promoting awareness of the chapel and its liturgical collection. It will also illustrate how the artistic renewal of the chapel and its collection during the mid-1980s arose from the spirit of the Irish Arts & Crafts movement. The Honan Collection Online project received funding from the Quality Promotion Unit, University College Cork to develop the website. The site will feature essays linked to a comprehensive image gallery and a virtual tour of the chapel. The site will also include a discussion forum. The core project team members include: Rev. Fr. Joseph Coughlan, project director; James Cronin, History of Art, project co-ordinator; Daniel C. Doolan and Xiaoye Dai, both multimedia doctoral candidates in University College Cork, and Miguel Suarez, document scanning. Principles governing website design Websites should be designed so...

Words: 2159 - Pages: 9

Free Essay

Java Applet

...Applet Java Applets were created when the Internet was becoming popular with educational institutions, businesses and consumers. Java Applets were originally meant to be part of products from the cable company, but developers of Java Applets could not convince the cable industry to use their invention. Java Applets were created by programmers at Sun in 1995. They were James Gosig, Patrick Naughton and Mike Sheridan who called themselves the Green Team. Java Applets share some similarities with the java programming language. Java is text and characters that is written as instructions. A programmer is the person who writes the instructions on the computer. The computer will not perform an action without getting instructions from the person who writes the instructions. The java programming language allows a programmer to use the same code on both a personal computer and a Macintosh. The same rule applies to a Web browser. The programmer who creates web pages is called the web master. The web master uses hypertext markup language to create a webpage. In order for the webpage images to move an applet is added. An applet is a small application that is placed inside the hypertext markup language. The most popular web browsers in the 1990s were Netscape and Mosaic. Both browsers displayed still images and text. Java applets allowed the programmer to write applications for the web. For the first time, using Java Applets, images could move. Animation allowed webpages to come alive....

Words: 2297 - Pages: 10

Free Essay

Java Ring

...with a quick, intentional press of the Blue Dot. ◆ You keep your computer at hand versus lugging your everywhere you roam ◆ You become part of the network economy ◆ This steel-bound credential stands up to the hard knocks of everyday wear, including sessions in the swimming pool or clothes washer What is Java Ring? A Java Ring is a finger ring that contains a small microprocessor with built-in capabilities for the user, a sort of smart card that is wearable on a finger. Sun Microsystem's Java Ring was introduced at their JavaOne Conference in 1998 and, instead of a gemstone, contained an inexpensive microprocessor in a stainless-steel iButton running a Java virtual machine and preloaded with applets (little application programs). The rings were built by Dallas Semiconductor. Workstations at the conference had "ring readers" installed on them that...

Words: 7793 - Pages: 32

Free Essay

Story

...Kyrsten Arnold Period 4 11/1/11 Scary Story This was going to be a scary night. First, at dinnertime, my mother, father, and I had the normal Friday night meal, pizza. All three of us had gathered in the family room and ate in silence as we watched my dad’s favorite TV show “Chopped”. After I finished my last delicious bite of pepperoni pizza, I became tired of cooking competitions, so I began to wash my dishes. As I did I took a glance out the window in front of the sink and had to do a double take, because there, slightly behind a tree, only a few yards behind my house was a tall man in a long dark coat and a pitch black hat. I blinked several times and rubbed my eyes. When I looked back, he was gone. Phew, it was just my eyes playing tricks on me. I let out a relived sigh as I finished my dishes and headed up to my room to read my book. Next, at bedtime, just as I was about to pull the sheets over me, I saw him again, but he looked different. He stood in rags and this time I could see his face. His pale face was like that of a vampire and his dead gray eyes burned into mine. Then I realized he was carrying something big. My eyes grew wide and I rubbed them frantically, but when I opened them again he was still there and had moved even closer to the house. As he moved forward he stepped into a pool of moonlight and I could see what was in his hands. A chainsaw. A bloody, red chainsaw was what he carried. I wanted to scream but my mouth felt dry and scratchy, like...

Words: 870 - Pages: 4

Free Essay

Jobs

...I made sure I was early so that I would make a good first impression. After I clocked in I made my way into the kitchen where I heard loud rap music. There was no one in the French fry smelling kitchen when I first walked in. I was a little confused to why I was hearing Method man and Redman blasting out of the speakers because no one was around. I began to take off my jacket when one of the older employees came out of the freezer with a large box of pizza dough. He introduced himself as Gary and told me that he was going to be training me tonight. It was Six O’clock and the Celtics game started at seven. We had an Hour to pre make pizzas and store them in the freezer. Gary started to show me how to make the pizzas. The dough was the hardest part. I kept getting holes in the dough whenever I would try and knead it. I eventually somewhat got the hang of it. I made about four pizzas and he made the rest. We had ten total pizzas made and it was about to be game time. Gary started to pop a few of the pizzas in the oven. Orders started to come in at the same time and that was my job. I can remember my first order was a BBQ...

Words: 1093 - Pages: 5

Free Essay

Pizza

...management feasibility of the project. A. NAME OF THE BUSINESS: “PIZZAZZY” The name was formed due to its root word “pizzazz” meaning appealing and captivating. This embodies our pizza’s qualities. By introducing our very own “Pizzazzy” wrapped around pizza, it unleashes a new variety of scrumptious food to crave for. * Description of the Logo Figure 1.1 Description of Logo Business Logo “Pizzazzy” logo consists of a graphic representation of the product itself. The picture interprets scrumptious pizza wrapped around. The font for “Pizzazzy Pizza” illustrates ease and as to the hue rendered it gives off insatiable flow of energy. It was partnered with a shadowy light that means branching out, to spread the delight people had experienced. It is because we believe that the product is worthy of everyone’s taste buds. The green circle signifies prosperity and continuity in terms of satisfying service the business has to offer. Circular image represents ceaselessness of innovation and customer satisfaction. On the other hand, red being the warmest of all colors was chosen for the ribbon to symbolize our warm welcome to our customers and to increase their enthusiasm and interest about our pizza. It was also traced with a touch of yellow to brighten up the mood in each valued customer. We used these different colors because of their positive energy which we hope will transcend into our business B. STORE LOCATION * The business is located...

Words: 7916 - Pages: 32

Premium Essay

Warning: Contents May Make You Want to Order a Pizza

...YOU WANT TO ORDER A PIZZA Scene One: Once Upon a Dinnertime Mary is hanging out with a few friends and her brother. She wants to order pizza tonight, but can’t afford to do so all by herself. She won’t be able to get what she wants unless she can convince all of the others to chip in for pizza, but she has her skills from English class to help her in her mission! Our story begins… Mary: (writes on whiteboard) “Thesis: We should order a couple of pizzas for dinner tonight.” Mary: (looks over at the people watching TV) Guys? What do you think? Chris: Maybe. What do the rest of you… hmm, maybe we’d better wait for a commercial. Well, I’m paying attention. Why pizza? Mary: Uh… hmm. Chris: Also, since when do you have a whiteboard in your living room? Mary: (writes) “Pizza was a regular dinner in my family, growing up. My brother and I were always happy when our parents said, ‘Pizza night!’ Both our parents worked, which meant that there was often no one with much time to cook. They enjoyed the break from cooking, and we all enjoyed the pizza (and the break from washing dishes). We’d only have it once every couple of weeks, though, so we never got tired of it. Basically, pizza is great.” Chris: o_O What was that? Mary: I was showing that pizza is delicious! …And time-saving and stuff! Chris: …Where did you talk about pizza being delicious? I just saw a story. Mary: In the middle! I said we all enjoyed the pizza. Chris: Um. I barely...

Words: 1768 - Pages: 8

Free Essay

First Date

...It was a beautiful fall evening. The sun was just beginning to give way to incoming twilight. I could smell winter in the air, even through my closed window. Soon there'd be snow on the ground. Matchbox Twenty was playing on my clock radio. I want to push you around...” The mood was set for a soft autumn night. However the mood inside my room was quite different. I was running around trying to do a million things a one time. My makeup was all wrong for my outfit. My hair was too big, no, now too flat. My stomach was rolling inside itself. My poor tummy was on tumble dry and I couldn't quite get it to stop. I couldn't find my shoes; my shirt had foundation on the side. What I really wanted to do was to sit on my bed and cry. Brian had called twenty minutes before the chaos. I could not believe he had called me. He probably thought I was stupid because I was so tongue-tied. He asked me if I would mind coming to dinner with him and a few of his friends. Would I mind? Do cows moo? The horn honked. My frustration grew. If this was a real date, my first one ever, shouldn't he come to the door and pick me up? Maybe take my arm in his and lead me to the car? I had envisioned my first date to at least start off right. This must be an omen. I walked out the door. The moment I heard the click of the lock I knew I looked horrible. A million thoughts raced through my mind, among these were the fact that I should have worn the blue shirt, my hair looks horrible, and oh God everyone is watching...

Words: 778 - Pages: 4

Premium Essay

Week 1

...The importance of making this business a success is increasing profitability, reducing the waiting time in the restaurant, and having a process implemented that will maintain a balance between the demand for service and the capacity of the system to provide the service to customers. Customers are dissatisfied with the wait time and it necessary to evaluate the customer population, customer que wait times, the servicing system, and develop a priority rule for determining who is served next. The current business flow through process at the pizzeria is: 1. four servers 2. two kitchen staff 3. four manual ovens 4. 14 tables that seat four with no other table seating types available 5. Cream puffs product in addition to Pizza and uniqueness. As the business is being passed down, it is important for the successor to recognize the learning curve and understand the restaurant as it functions today. During peak times, the pizzeria staffs four wait staff and two kitchen workers. With customers arriving in groups of two to four every three to five minutes there are only 14 4-top tables, but no 2-top tables to seat each party. The entire process from when a customer walks into the pizzeria to the time they leave takes 53 minutes. Eleven of the minutes are consumed just waiting to be seated at an open table and another 13 minutes are consumed back in the kitchen processing the order – room for improvement. Applying the learning curve theorem By turning four of the 4-tops into...

Words: 797 - Pages: 4

Free Essay

Operations

...Simulation Introduction “Applying the Learning Curve Theory” simulation regards around Mario’s Pizzeria, a pizza parlor based in Palm Springs, California. Mario’s pizzeria is a successful business in Palm Springs that is known for its originality and freshness in taste. Mario, the owner of Mario’s Pizzeria, examines his grandson’s capability of managing Mario’s Pizzeria. He will test his grandson’s management abilities and will declare his grandson the heir of Mario’s pizzeria if his grandson is successful. In this simulation, one will run the restaurant as if Mario’s grandson and will use his/her knowledge from the previous business classes. The student’s goals are profit maximization and minimization of wait time for customers. Optimization of both factors is the key to success in this situation. Learning Curve Theory First step is identify whether the current table set up is appropriate for this business situation. I set a cost of 20 dollars per day for ten tables of four people. 95.71% of the four table sets are exploited at $20; 87.27% of the two table sets are exploited at $16. The operating staff of four people is operated at 86.94% with a mean, standard deviation, and total cost of $8.00, $2.12, and 200 dollars per day. The operating kitchen staff is employed at 65.14 percent efficiency with two people and a mean, standard deviation, and total cost of $3.00, $1.00, and $160.00. Altering the values of table sets and kitchen/waiter did not increase the profits as decreasing...

Words: 626 - Pages: 3

Free Essay

Domino´S Pizza

...1. ¿Qué pasos muestra el Pizza Tracker para el usuario? Pasos: 1. Orden puesta 2. Preparación 3. Cocción 4. Control de calidad 5. Entrega Finalmente para darle seguimiento el cliente introduce su número de teléfono para poder darle seguimiento a su pedido. 2. ¿Cómo mejorar el Pizza Tracker hacia el usuario? El pizza traker de Domino’s permite a los clientes hacer sus pedidos en línea y a su vez rastrear los mismos. Este sistema permite a los clientes ver una versión fotográfica simulada de su pizza mientras esta es personalizada, Pizza Tracker muestra una barra horizontal que rastrea el progreso de un pedido en forma gráfica ; A medida que Domino´s completa cada paso del proceso de cumplimiento del pedido. Cabe señalar que también tiene la ventaja de que no tiene que moverse a la pizzería, esto le ahorra tiempo y dinero. 3. Sería una influencia del servicio del Pizza Tracker para pedir una pizza de Domino’s, en lugar de una cadena de la competencia? ¿Por qué o por qué no? Sí, porque con este servicio, el cliente puede darle seguimiento a su orden para saber en donde encuentra exactamente, es una forma de convencerlo para que las pizzas de Domino’s en lugar de elegir alguna otra pizzería de la competencia   4. ¿Qué mejoras le haría a la característica de la realización de pedidos? Integrar un sistema de software, para mejorar la coordinación y la toma de decisiones. También muy importante los sistemas de administración de la cadena de suministros ya que...

Words: 332 - Pages: 2

Free Essay

Why the Big Green Egg?

...Edgar Benitez Professor Stephanson September 29, 2014 Why Is The Big Green Egg The Go-To Grill You Ask? So you want to purchase a new grill? You go to some local store with half a dozen models to choose from and you get confused. What size should you get? Who makes a reliable and easy to use grill? Do you want charcoal or gas? There are hundreds of questions you can ask, so I am going to try and help you out. In the third century C.E, the Japanese adopted domed cooking vessels from the Chinese Qin Dynasty called “kamados”, which has been translated to mean oven, stone, heater or fireplace. Initially, pots were hung over the fire inside the kamado, and eventually a form of cooking grid was fitted inside for grilling and roasting meats. Now fast forward a bit, during World War II, U.S. servicemen discovered kamados in Japan. They loved cooking in them and shipped them back after the war. The kamados were an unusual but exciting alternative to the barbecue grills of the day, but were soon sold to them due to their great results. When looking to buy a new grill, home cooks should consider the Big Green Egg because this grill seems impervious to weather, its accessory collection surpasses any other, and, most importantly, the flavor you get out of this grill is phenomenal. Home cooks need a grill that is reliable and comfortable. The Big Green Egg is known for its high quality customer service and support. Their home office, based out of Atlanta, GA, has been there since...

Words: 1054 - Pages: 5

Premium Essay

Blahblah

...thorough investigation and research. A Feasibility study is the most efficient one for it examines and ponders all aspects of the business. Pizza, as we know it today is a bread crust covered with a tomato base and then flavored with other toppings. Most of us think of pizza as an Italian food and most of us are right. The word "pizza" means "pie" and is a derivative of the Roman term "picea". The Italians were also the first to use tomatoes on their pizzas. The real explosion in the popularity of pizza took place in the 1094’s; during WWI U.S. troops stationed in Italy had their first taste of pizza. When they arrive home they brought with them an appreciation for this great tasting food, and the growth of the U.S. pizza consumption began and today pizza is one of the most favorite food of many Filipinos, according to European nutrition research on the eating habits of people with cancer of the mouth, esophagus, throat or colon, showed those who ate pizza at least once a week had less chance of developing cancer. B. Name and Location of the Firm A business name is one of the most essential things to be prepared in starting a business. PIZZAPA came from the words, pizza and pasta which serve as the specialty of our business. Aside from that the reason why we choose that name “PIZZAPA” because it is originated from the word “Pizza pa” (pizza + isa pa = PIZAPA) so that customers would easily recognize what is our product. The exact location of the said business will be at area...

Words: 318 - Pages: 2

Free Essay

Odor on Memory

...randomly assigned to one of the two different conditions; one being a pizza odor filled room and the other an odorless room. Materials The materials used in our experiment were a cheese pizza from the supermarket Fresh and Easy, the pizza was used in one of the two conditions to fill the room with its overpowering stench. A consent form which was given to the participants before the experiment was conducted. They were given a pen and a standard sized piece of paper (8.5" x 11") to write on. We used an Apple brand iPad to run a PowerPoint slide show of the words to be memorized and a timer on an Apple brand iPhone to time the participants after the slide show to see how many words they were able to recall from the word list shown on the slide show. Stimuli The stimuli used for our experiment was a word list generated from the Vancouver Word List. We used a number generator to randomly select number and then matched the corresponding number from the word list and used the word that went with that number in our word list. We also made a separate word list by using Google and searching some other odor related words, and since one of the conditions used would be a pizza odor we constructed a third word list through Google search consisting of Italian food related words. From the three lists we randomly assigned the words into one list. Procedure Each participant would walk into one of two conditions, either a pizza odor or an odorless room with an experiment conductor; sit down on...

Words: 454 - Pages: 2