The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 408 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
(Advanced Java Programming using Eclipse)
1. Write a program that reads an integer between 0 and 10000 by selecting the integer at random; then sum the digits. For example if the number is 7462, use the remainder operator (%) and the division operator (/) to get the individual digits. For example, 7462/1000 = 7 and 7462%1000 = 462; 462/100 = 4 and 462%100 =62; 62/10 = 6; 62%10 = 2. The sum of all its digits is 7+4+6+2=19.
2. Develop an application using the User Interface and item/price below to calculate the price of a pizza based on its size and toppings. When the user selects a size and toppings for the pizza and clicks the calculate button, the application should calculate the price of the pizza, add the price of the selected toppings to the base price of the pizza.
The pizza calculator will include Size: small, medium, large; Toppings: sausage, olives, pepperoni, mushrooms, salami, anchovies,
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------