An integer variable called Midterm stored an integer from O to 100. Whichone of the following...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
An integer variable called Midterm stored an integer from O to 100. Whichone of the following pieces of code gives a different result to the others? If Midterm >= 30 Then If Midterm < 75 Then If Midterm 50 Then MsgBox "Good luck!" Else MsgBox "Keep it up!" End If Else If Midterm < 90 Then MsgBox "Very good!" Else MsgBox "Excellent!" End If End If Else MsgBox "Work harder next time!" End If If Midterm < 50 Then If Midterm >= 30 Then MsgBox "Work harder next time!" Else MsgBox "Good luck!" End If Elself Midterm < 98 Then If Midterm >= 75 Then MsgBox "Very good!" Else MsgBox "Keep it up!" End If Else MsgBox "Excellent!" End If If Midterm >= 90 Then MsgBox "Excellent!" Elself Midterm >= 75 Then MsgBox "Very good!" Elself Midterm >= 50 Then MsgBox "Keep it up!" Elself Midterm >= 30 Then MsgBox "Work harder next time!" Else MsgBox "Good luck!" End If If Midterm < 30 Then MsgBox "Good luck!" Elself Midterm < 58 Then MsgBox "Work harder next time!" Elself Midterm < 75 Then MsgBox "Keep it up!" Elself Midterm < 98 Then MsgBox "Very good!" Else MsgBox "Excellent!" End If An integer variable called Midterm stored an integer from O to 100. Whichone of the following pieces of code gives a different result to the others? If Midterm >= 30 Then If Midterm < 75 Then If Midterm 50 Then MsgBox "Good luck!" Else MsgBox "Keep it up!" End If Else If Midterm < 90 Then MsgBox "Very good!" Else MsgBox "Excellent!" End If End If Else MsgBox "Work harder next time!" End If If Midterm < 50 Then If Midterm >= 30 Then MsgBox "Work harder next time!" Else MsgBox "Good luck!" End If Elself Midterm < 98 Then If Midterm >= 75 Then MsgBox "Very good!" Else MsgBox "Keep it up!" End If Else MsgBox "Excellent!" End If If Midterm >= 90 Then MsgBox "Excellent!" Elself Midterm >= 75 Then MsgBox "Very good!" Elself Midterm >= 50 Then MsgBox "Keep it up!" Elself Midterm >= 30 Then MsgBox "Work harder next time!" Else MsgBox "Good luck!" End If If Midterm < 30 Then MsgBox "Good luck!" Elself Midterm < 58 Then MsgBox "Work harder next time!" Elself Midterm < 75 Then MsgBox "Keep it up!" Elself Midterm < 98 Then MsgBox "Very good!" Else MsgBox "Excellent!" End If
Expert Answer:
Answer rating: 100% (QA)
1st one gives a different result 1st one Prints Work Harder Next Time wh... View the full answer
Related Book For
Stats Data and Models
ISBN: 978-0321986498
4th edition
Authors: Richard D. De Veaux, Paul D. Velleman, David E. Bock
Posted Date:
Students also viewed these programming questions
-
Identify and correct the errors in each of the following pieces of code. a) int x = 1, total; while (x
-
For each of the following pieces of information, state whether it should be included in. or excluded from, the Facts section of an issues memo, assuming that the objective of the issues memo is to...
-
Given an integer variable called itemsSold (assume it is already set), write a statement that will display the value of itemsSold .
-
Given the following information, prepare a production report with materials added at the beginning and ending work in process inventory being 20% complete with regard to conversion costs. Costs to...
-
Find the derivatives of the Fresnel function (a) d/dx S (x) (b) d/dx C(x)
-
Referring to the previous problem, realize that there is a region between each pair of absorption bands for which the Cauchy Equation (with a new set of constants) works fairly well. Examine Fig....
-
Tom Bonacci brought his Jeep to Brewer Service Station to investigate a strange noise the vehicle was making. The Jeep was raised up on an automobile lift so that Brewer employee Paul Gebing could...
-
In 2016, Lee Inc. billed its customers $62,000 for services performed. The company collected $51,000 of the amount billed. Lee incurred $39,000 of other operating expenses on account. Lee paid...
-
20. a) Choose an algebraic method to solve the following linear system. Explain why you chose this method. 2 3x 2 2y 3 7 3 + 2y = 5 b) Use the method you chose to solve the system. Check your...
-
Prevosti Farms and Sugarhouse pays its employees according to their job classification. The following employees make up Sugarhouse's staff: Employee Number Name and Address Payroll information...
-
CHCDIV003 Manage and Promote Diversity Q.1 A colleague is having difficulty accepting the cultural mannerisms of another person, which they perceive as being rude. Suggest three ways in which you...
-
Heating oil spot prices have a variance of 0.21 whereas crude oil futures prices have a variance of 0.32. The correlation between heating oil spot prices and crude oil futures prices is 0.65. What is...
-
Discussion Questions for The World of the Worker Chapter 5 - "The Depression, the New Deal, and the New Industrial Unions" 1.) How did the Great Depression affect American workers? 2.) With what...
-
Read the article below and answer ALL the questions that follow. Stakeholder Management case study: UK Passport Agency - Why Stakeholder Management is so important Effective Stakeholder Management is...
-
How do evolutionary theories of strategy illuminate the adaptive processes by which organizations explore new opportunities, exploit existing capabilities, and continuously renew their competitive...
-
Walsh corporation has 3 shareholders: X,Y, and Z.X and Y are siblings; Z is unrelated to X and Y. Each shareholder has 200 shares with a basis of $50 per share and have held the stock for 5 years....
-
1. What are your 5 favorite apps and why. Be specific and detailed...how often do you use them and what do they do? As and example, for me I would have to have: A. Google Maps (I use it to find...
-
The Smiths buy a house. They borrow 80 percent of the purchase price from the local ABC Savings and Loan. Before they make their first payment, ABC transfers the right to receive mortgage payments to...
-
The researchers from Exercise 1 want to test if the proportions of foreign born are the same in the United States as in Canada. In Exercise 1 Suppose an advocacy organization surveys 960 Canadians...
-
After keeping track of his heating expenses for several winters, a homeowner believes he can estimate the monthly cost from the average daily Fahrenheit temperature by using the model Cost = 133 -...
-
The Paralyzed Veterans of America is a philanthropic organization that relies on contributions. They send free mailing labels and greeting cards to potential donors on their list and ask for a...
-
Based on Exhibit 2, the goodwill included in Topmakers purchase of Rainer is: A. $21 million. B. $60 million. C. $99 million.
-
If the states \(|1angle,|2angle,|3angle,|4angle,|5angle\) are (orthonormal) eigenstates of the Hamiltonian of energies \(E_{1}, E_{2}, E_{3}, E_{4}\), and \(E_{5}\), respectively, and at time \(t=0\)...
-
Consider the bipartite state in \(\mathcal{H}_{A} \otimes \mathcal{H}_{B}\) where \(|1angle,|2angle,|3angle,|4angle\) are orthonormal states. Calculate the mixed state obtained by taking the trace...
Study smarter with the SolutionInn App