Question
q1- You run a local store and want to give your sales people a bonus if their monthly sales are between $1,500 and $2,000 inclusively.
q1- You run a local store and want to give your sales people a bonus if their monthly sales are between $1,500 and $2,000 inclusively. You have developed a software application to help. If a sales person generates betwen $1,700 worth of sales, which statement listed below will print out "Congratulations on a great month!"?
If TotalSales >=1500 And TotalSales <=2000 then print("Congratulations on a great month!" End If
If TotalSales > 1500 Or TotalSales < 2000 Then print("Congratulations on a great month!") End If
If TotalSales >=1500 And <= 2000 Then print("Congratulations on a great month!" End If
If TotalSales <=1500 Or TotalSales >=2000 Then print("Congratulations on a great month!" End If
q2-
What is wrong with the following code? #Declare Variables Declare NumItems as integer Declare Test as float Declare Sum as float #Ask user for test score, assign that value to the Test variable #and calculate the sum
Set NumItems = 5 Do While NumItems < 10
print("Enter in the next test score: ") input Test Sum = Sum + Test Loop
The loop will never stop. |
The count should start at -1 |
Sum would not calculate correctly |
This should be a For Next Loop. q3- What will be displayed if the corresponding code is executed? set Number = 4 Do Until Number = 8 write "2 + " + Number set Number = Number + 2 Loop
|
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