[ Pobierz całość w formacie PDF ]
.QAre some operators more important than others?AVBScript ranks the operators in a specific order, called the order of precedence.The order of precedence helps determine how a code statement is executed when it has more than one operator.WorkshopDesign a Web page that asks the user for a series of values.Storethose values in variables and write code that exercises everyone of the operators discussed today.Which ones are you the mostfamiliar with? Which ones do you anticipate using the most inyour Web pages?QuizNoteRefer to Appendix C, "Answers to Quiz Questions," for the answers to these questions.Write a program that converts feet to inches.Hint: Thereare 12 inches in a foot.Write a program that sells concert tickets to your customers.Get from the customer her name, how many tickets she wants, andwhether or not she wants front-row tickets.Use the followingformula in calculating the cost: Ticket cost equals $20.00 plus$4.00 for front row tickets plus a 3% commission.Add 8% salestax to the total cost of the ticket plus the commission.Determine the result of the following expressions using theorder-of-precedence rules:a. 5 * 9 - 3 ^ 2b. (72 - 3) / 3 Mod 3c. 7 + 2 - 5 * 2d. True Or False And Truee. False Or Not True
[ Pobierz całość w formacie PDF ]