✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
3.3 You are building a pizza ordering assistant. The user types a size option: small, medium, or large.
· Small: “You selected a small pizza. R60 – enough for one person!”
· Medium: “Medium pizza selected. R100 – a good choice for two.”
· Large: “A large pizza! R140 – perfect for the whole family!”
If the input is anything else, show:“Sorry, that size is not available. Please choose small, medium, or large.”
Task:Write a JavaScript program to:
· Prompt the user to select a pizza size.
· Use if...else if to display price and portion info.
· Show an error for invalid input.
Your manager has provided an image of the desired JS App (see below) and asked you to design a JavaScript page. (15 Marks)
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!