Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1- Create an array of objects named items which contains two properties item and it's price with the values: (burger, 4), (coffee, 1.5), juice ,
1- Create an array of objects named items which contains two properties "item" and it's "price" with the values: ("burger", 4), ("coffee", 1.5), "juice" , 0.5) 2- Sort array items in ascending order based on the price values 3- Add "Print Items" Button, which when clicked displays the array values as "ordered list". 4-Add "Min Price" button, which when clicked prints the item with the minimum price, Hint("You don't need to use loop') The following screenshot is a sample workflow that may help you understand the script behavior (8 Points) Main output buttons Print items min price The Output if "max discount" is clicked The Output If "print items "clicked: the item with musim pace is 1. item is juice, price is 0.5 item is coffee price is 1.5 3 item is burger price is 4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started