Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question text Provided below is an if statement. Which of the following select case statements can be used to replace the if statement? if grade

Question text
Provided below is an if statement. Which of the following select case statements can be used to replace the if statement?
if grade =A then
price = price *2
else
if grade =B then
price = price *1.14
else
if grade =C then
price = price *0.9125
else
if price >50 then
price = price +5
else
price = price 4
endif
endif
endif
endif
a.
select case grade
case A
price = price *2
case B
price = price *1.14
case C
price = price *0.9125
case else
if price >50 then
price = price +5
else
price = price 4
endif
endselect
b.
select case
case A
price = price *2
case B
price = price *1.14
case C
price = price *0.9125
case else
if price >50 then
price = price +5
else
price = price 4
endif
endselect
c.
select case grade
case A
price = price *2
case B
price = price *1.14
case C
price = price *0.9125
case price >50 then
if then
price = price +5
else
price = price 4
endif
endselect
d.
select case grade
case A
price = price *2
case B
price = price *1.14
case C
price = price *0.9125
case price >50 then
price = price +5
case else
price = price 4
endselect

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

=+3. Which factors do influence the procurement management?

Answered: 1 week ago

Question

=+1. Describe the product range in the press sector!

Answered: 1 week ago