Solved

A Store Provides 10 Percent Discount on All Items with a Price

Question 3

Multiple Choice

A store provides 10 percent discount on all items with a price of at least $100.No discount is otherwise applicable.Which of the following DOES NOT correctly compute the discount?


A) double discount =0;
if ( price >=100)
{
discount =0.10^{*} price;
}
B) double discount =0.10 * price;
if ( price <=100)
{
discount =0;
}
C) double discount;
if (price <100 )
{
discount =0;
}
else
{
discount =0.10* price;
}
D) double discount =10;
if ( price >=100)
{
discount =0.1 * price;
}
else
{
discount =0;
}

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents