| | |
write aprogramme
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 49
Reputation:
Solved Threads: 0
Does anyone know how to solve this question............
An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate number and the ballot paper.Write a programme to read the ballots and count the votes cast for each candidate using an array variable count.In case anumber read is outside the range 1-5 the ballot is considered as'spoilt ballot'and the program should also count the no of spoilt ballots.
plz respond...........
An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate number and the ballot paper.Write a programme to read the ballots and count the votes cast for each candidate using an array variable count.In case anumber read is outside the range 1-5 the ballot is considered as'spoilt ballot'and the program should also count the no of spoilt ballots.
plz respond...........
Last edited by anuizath2007; Jul 7th, 2008 at 5:50 am.
Yes I do but may I see what have you tried or on what lines are you thinking, cause the main purpose of this program (most probably given by your instructor) is to train your brain to think of a solution and then convert it into C code, a characteristic that makes good programmers good
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
"How to ask questions the smart way ?"
![]() |
Similar Threads
- how to create autostart programme using c#? (C#)
- Help with formula (C++)
- Do my homework for me. [because I'm too lazy to do it myself] (C++)
Other Threads in the C++ Forum
- Previous Thread: fstream Tutorial
- Next Thread: Inheritance and friends
Views: 602 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






