WAP to check student is first ,second or third .
If number is greater than equal to 60->>first
If number is greater than equal to 45->>second
If number is greater than equal to 33->>third
If other than that ->>fail
Recommended Answers
Jump to PostI'm assuming that because the OP was too lazy to try this on his own first, he was also too lazy to expand WAP to "Write A Program".
Jump to PostWhy the redundant tests?
Line 4: we know that i<60 because of the if test in line 2, so that part of the test is redundant.
Ditto the <45 on line 6
All 5 Replies
rproffitt 2,701 https://5calls.org Moderator
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Santosh_23 -6 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
hussainmujtaba -3 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.