🔒 Closed Who wants to be a millionaire program.

Status
Not open for further replies.

Kiss21

Eternal Poster
Pahelp nman po para po sa programming for C++. Di ko po kasi alam kun san ako magsisimula :(

Write a program about the game "Who wants to be a Millionaire". There Should be a 15 Questions per round and the program will choose questions randomly. Each round has an equivalent difficulty and amount of winning. There is a bracket for guaranteed amount. There will be a 3 LIFE LINES that will take away 2 out of 4 multiple choice question. final round should be Identification.
 
cmd po yung out niya.
To give you an idea, the best approach para sa akin dyan eh making your own class which let's say Question.
Search mo how. OOP yun.
Class Question
- Question (String)
- Difficulty (String) (Ex. Easy, medium, hard, Identification)
- Choices (String list)
- Answer (String)

Tapos may method ka o object which eliminates the incorrect choices.
"Lessen life line."
etc.

After nun, e define mo na yung question siguro at the beginning.
 
To give you an idea, the best approach para sa akin dyan eh making your own class which let's say Question.
Search mo how. OOP yun.
Class Question
- Question (String)
- Difficulty (String) (Ex. Easy, medium, hard, Identification)
- Choices (String list)
- Answer (String)

Tapos may method ka o object which eliminates the incorrect choices.
"Lessen life line."
etc.

After nun, e define mo na yung question siguro at the beginning.
Pano sir mag random question yung mag lalagay ako ng 15 queastion per round. pero yung program napo pipili ng question.
 
Pano sir mag random question yung mag lalagay ako ng 15 queastion per round. pero yung program napo pipili ng question.
Meron nun.... picking a random from a list. Search mo lang sa google.
"Random pick array then eliminate c++"
or one way to shuffle the list. Tapos yun, for loop lang para mapresent yung question.
Search mo lang.
 
Meron nun.... picking a random from a list. Search mo lang sa google.
"Random pick array then eliminate c++"
or one way to shuffle the list. Tapos yun, for loop lang para mapresent yung question.
Search mo lang.
sir my facebook name po ba kayo. hehe Thank you talaga sir
 
Meron nun.... picking a random from a list. Search mo lang sa google.
"Random pick array then eliminate c++"
or one way to shuffle the list. Tapos yun, for loop lang para mapresent yung question.
Search mo lang.
btw sir. pwedi Void functionname() po ang gagamitin?
 
last nalng po ano po yung code na e clear nya yung question?
THANK YOU PO
Ganito. Gagawa ka ng array, para sa easy questions, medium questions, hard, saka identification.
Ilagay mo yung question dun sa each array, base sa difficulty.
Tapos shuffle mo.
Then yun, hindi na kailangan i clear yung question, i sunod mo na yung sumunod sa array.
 
Kung may nasimulan ka na, share mo para matulungan ka ng mga master dito.
Ayaw ko talaga kasi ng spoonfeed. Sorry, kailangan mo matutunan ng needed topic para walang sablay kapag defense ng code. Para sayo din naman.
 
Status
Not open for further replies.

About this Thread

  • 19
    Replies
  • 870
    Views
  • 3
    Participants
Last reply from:
Kiss21

Trending Topics

Online now

Members online
1,049
Guests online
1,601
Total visitors
2,650

Forum statistics

Threads
2,275,041
Posts
28,960,230
Members
1,233,540
Latest member
movaki
Back
Top