explain how to implement a restaurant menu that has a scrollable first main page and is also
Fantastic news! We've Found the answer you've been seeking!
Question:
explain how to implement a restaurant menu that has a scrollable first main page and is also clickable using JAVA in Android Studio?
I just need an example for one food item to grasp the logic behind it and apply it to the other food items.
Please check screenshots attached to have an idea on the different JAVA activities needed.
Thank you.
Transcribed Image Text:
Part 4, CartActivity (25%) You will be asked to write a cart activity that allows the user to see all the items selected. I divide this section into two parts. In the first part, you need to modify the FoodListAcitivty by adding an extra button called "See Cart" on the bottom of the screen. You also need to change the background color and the text color of the list view item as shown in the following: Chicken Burger Beef Burger Pork Burger Fish Burger No Meat Burger Total: 0.0 SEE CART 10:13 In the second part, when the button SEE CART is clicked, you will launch the CartActivity and need to show all the items in the cart following this order: Name, Quantity, Price, and Total (See below). All items must be shown using ListView. You don't have to format information perfectly to get full marks. In addition, if the user orders the same item more than one time, you should merge their quantities. Finally, you need to implement a clear button to clear all the selected items. Remember to update the total number back to the default value. Item name Num $$ total Beef Steak 1 $35.99 35.99 Lamb Steak 2 $20.49 40.98 Beef Burger 1 $13.99 Total: 90.96 CLEAR Hint: Option1, you can pass ArrayList<String> using intent. Then use intent.getStringArrayListExtra(key) to get the list. Option 2, you can use sharedpreferences Part 4, CartActivity (25%) You will be asked to write a cart activity that allows the user to see all the items selected. I divide this section into two parts. In the first part, you need to modify the FoodListAcitivty by adding an extra button called "See Cart" on the bottom of the screen. You also need to change the background color and the text color of the list view item as shown in the following: Chicken Burger Beef Burger Pork Burger Fish Burger No Meat Burger Total: 0.0 SEE CART 10:13 In the second part, when the button SEE CART is clicked, you will launch the CartActivity and need to show all the items in the cart following this order: Name, Quantity, Price, and Total (See below). All items must be shown using ListView. You don't have to format information perfectly to get full marks. In addition, if the user orders the same item more than one time, you should merge their quantities. Finally, you need to implement a clear button to clear all the selected items. Remember to update the total number back to the default value. Item name Num $$ total Beef Steak 1 $35.99 35.99 Lamb Steak 2 $20.49 40.98 Beef Burger 1 $13.99 Total: 90.96 CLEAR Hint: Option1, you can pass ArrayList<String> using intent. Then use intent.getStringArrayListExtra(key) to get the list. Option 2, you can use sharedpreferences
Expert Answer:
Answer rating: 100% (QA)
Written upto R5 include using namespace std static int i0j0 struct FoodOrders char tit... View the full answer
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Solve Utt = cUTT 0
-
What strategies are most likely to be useful for firms in "perfectly" competitive markets?
-
Bartho Products sold used equipment with a cost of $15,000 and a carrying amount of $2,500 to Vardy Corp. in exchange for a $5,000, three-year non-interest-bearing note receivable. Although no...
-
Which arrangement in Figure P9.45 requires more work to give the block a rightward displacement \(\vec{d}\) ? The springs, blocks, and surfaces are identical in the two arrangements and the springs...
-
Princeton Fabrication, Inc., produced and sold 1,200 units of the companys only product in March. You have collected the following information from the accounting records: Sales price (per unit) . ....
-
Prepare an amortization table in excel based on the following: 1-A $1,000,000 investment is made using $300,000 of your savings and by taking out a loan for $700,000. The loan is for 30 years and...
-
. With the information generated from the following table derivate from the Bureau of Economic Analysis (https://apps.bea.gov/iTable/index_nipa.cfm), please do the regression analysis, with the...
-
Provide a constructive response that is respectful and academic tone to the following post that expands the conversation of the student To include informative, added value to learning this week's...
-
Sail Away, a cruise industry magazine, collected $480,000 in subscription revenue in May. Each subscriber will receive an issue of the magazine for each of the next 12 months, beginning with the June...
-
Identify three factors that might cause the auditors to assess the inherent risk of an engagement at a higher level.
-
A storage tank acquired at the beginning of the fiscal year at a cost of $72,000 has an estimated residual value of $4,400 and an estimated useful life of 4 years. a. Determine the amount of annual...
-
33. A company paid $125,000, plus a 9% commission and $7,000 in closing costs for a property. The property included land appraised at $85,000, land improvements appraised at $34,000, and a building...
-
Equipment will be depreciated at 10% of the cost per year and the company will spend 160,000 on equipment. calculate the Forecast Monthly Cash Flow Statement for the first quarter of 2021. QUESTION...
-
An Electronics company wishes to maintain stock of items with buy and sells of details. Write a java application to show total stock, total buy, and total sell of the company.
-
What is master production scheduling and how is it done?
-
A graph is k-colorable if each vertex can be given one of k colors, and no edge connects identically colored vertices. Give a linear-time algorithm to test a graph for two-colorability. Assume graphs...
-
The isEmpty routine for quadratic probing has not been written. Can you implement it by returning the expression currentSize==0?
-
Sort the sequence 3, 1, 4, 1, 5, 9, 2, 6, 5 using insertion sort.
-
The suitability concern discussed by Kroll and Park most likely deals with: A. governance. B. transparency. C. investment horizon. Kevin Kroll is the chair of the investment committee responsible for...
-
Which of Parks statements regarding the asset allocation approaches is correct? A. Only Statement 3 B. Only Statement 4 C. Both Statement 3 and Statement 4 Kevin Kroll is the chair of the investment...
-
Based on the forecasted environment, liquidity planning should take into account that general partners may: A. call capital at a slower pace. B. make distributions at a faster pace. C. exercise an...
Study smarter with the SolutionInn App