Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

May I please get help on this question in c++, I did most of the program I am just stuck on the return value thats

May I please get help on this question in c++, I did most of the program I am just stuck on the return value thats all please help me see what is wrong that I am doing in this program.

image text in transcribed

Define a function FindLotteryPrize() that takes one integer parameter as the lottery number, and returns the prize as an integer. The prize is returned as follows: - If lottery number is 119 or 127 , prize is $12500. - If lottery number is 712 or 891 , prize is $19000. - Otherwise, prize is $0. Ex: If the input is 119 , then the output is: 12500

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Show that x = (11) is a null direation for but x ker K. 3 2

Answered: 1 week ago

Question

Did I see new opportunities and act on them? What surprised me?

Answered: 1 week ago