Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

if you want to punto message to a customer saying You win if he spent more than $500 in your store and print a message

image text in transcribed
image text in transcribed
if you want to punto message to a customer saying "You win if he spent more than $500 in your store and print a message saying "Spend more to win! if he spent less than 100 The correct code to do this Select one: a double spent cin>> spent ffspent-100) if spent 500) couteYou wincendi else moutce'Spend more to win!" cetud b. double spent cin>>spent spent>100) I spent =500) cout> spent spent>100) cout 500) DU - "You wiolecond d. double spent cine spent Iflspent100) it spent--560) coute'You wintecendi: } else cout Spend more to wintecendo The correct and error-free code that reads two integers from the user and finds and prints their sum if they are both positive is Select one: O a.int nl n2 cin>>nl,n2 if non20) coutrl+12 b. int nin2 cinsnl. cin12 il no&8n20 coutonlin2 c. int ni na cinsnl, na if in 0 &&n2.0) cout> cin12 if (nis0|n20 cout-hi+n2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions