Computers and Technology
Computers and Technology, 12.01.2022 14:00, tankddd

Select the correct answer. If there was a sale on toys, and a child picked up Brand B, how much discount would he get as per the below program? switch (d){ //d contains the brand label case "A": price = price * 0.65 //apply a 35 percent discount break; case "B": price = price * 0.75 break; case "C": price = price * 0.8 break; default: //if none of the cases above apply price = price * 0.9; // apply a 10 percent discount }A. 5
B.
20
C.
35
D.
25
E.
10

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:00, rajenkins79
What is stored in str after the following code executes? string str = "computer science"; int i = 0; while (i < 8) { if (str. indexof("m") < i) { str = str. substring(0, 2) + str; } i += 2; } computer science cocomputer science cococomputer science cocococomputer science computer scienceco
Answers: 3
image
Computers and Technology, 23.06.2019 20:30, batmandillon21
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
image
Computers and Technology, 24.06.2019 00:20, talyku843
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
image
Computers and Technology, 25.06.2019 09:20, abolton04
Part d: float check string has a method s. isdigit() that returns true if string s contains only digits and false otherwise, i. e. s is a string that represents an integer. write a function named float_check that takes one parameter that is a string and returns true if the string represents a float and false otherwise. for the purpose of this function we define a float to be a string of digits that has at most one decimal point. note that under this definition an integer argument will return true. remember β€œedge cases” such as β€œ45.” or β€œ.45”; both should return true. for example: float_check('1234') returns true float_check('123.45') returns true float_check('123.45.67') returns false float_check('34e46') returns false float_check('.45') returns true float_check('45.') returns true float_check('45..') returns false
Answers: 2
Do you know the correct answer?
Select the correct answer. If there was a sale on toys, and a child picked up Brand B, how much disc...

Questions in other subjects: