Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. To round and format the value of a variable named Snumber to 3 decimal places and store it in a variable named Snumber formatted,
1. To round and format the value of a variable named Snumber to 3 decimal places and store it in a variable named Snumber formatted, you code a. Snumber_ formatted - number format (Snumber, 3, round) b. Snumber formatted - number format (8number, 3) c. $number formatted format_number (Snumber, 3, round) : d. Snumber formatted format number (Snumber, 3): 2. After the if statement that follows is executed, what will the value of SdiscountAmount be? Sdiscount amount Sorder total 200 if (Sorder total 200) Sdiscount amount- Sorder_ total.3: Sdiscount amount Sorder_total .2: sdiscount amount - Sorder_ total.1 else if (Sorder_total > 100) t else a. 0 b. 20 c. 40 d. 60 3.If StotalMonths has a value of 13, what does Smessage contain after this if statement is executed? Syears -$total months /12: years -number format (Syears): $months-$total months % 12; if ( syears-0 message Smonthsmonths Smessage -$years years Smessage - Syears" years, and months months" alse if ($monthso ) else a. 1 yoars, and 1 months b. 1 year, and 1 month d. 1 year
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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