Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (yanyan):

can anyone help me with the coding of these? 1. Create a program that accepts 3 inputted numbers, and display in ascending order. 2. Create a program that accepts 3 input numbers. Relate the 1st number to the 2nd number, and the 2nd number to the 3rd using "=",">",or "<". 3. Create a program that calculates the grade of the student. And display the rating according to the following: 97-100 1.0 94-96 1.25 90-93 1.50 86-89 1.75 83-85 2.0 81-82 2.25 78-80 2.50 76-78 2.75 75 3.0 75below 5.0 100up invalid Thanks!

OpenStudy (unklerhaukus):

Which programming language are you using?

OpenStudy (yanyan):

Borland C++

OpenStudy (e.mccormick):

How far did you get with it? Where did you have problems?

OpenStudy (yanyan):

im done with number 2..im having trouble with the conditional statement in number 1..and I still haven't started number 3

OpenStudy (e.mccormick):

Well, you want some sort of a sort, or you can do an if/else tree. If you think about it, your first if can determine basicially the highest/middle or the lowest/middle. Depends on if you do >= or <=. You want assending, so I would do <=. And, if you use &&, you could do two tests at a tame and find the lowest, and then you only need to find which of the remailing is the middle or highest. The third is just a long if/else chain.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!