Sponsored By

Sign in to follow this  
punkxyz

Need Help...

Recommended Posts

How to do this program by using for_loop ?

How many marks to be entered ? 4

Enter marks : 62

Enter marks : 91

Enter marks : 95

Enter marks : 41

The highest marks is 95.

The lowest marks is 41.

The number of students with grade A is 2.

This is the sample dialog gotta display when the program is been debug.

Grade A is to be awarded to students with marks above 90.

Hope anyone here can do me a favour on this program.

I have been trying hard to solve it.

Pls kindly teach a newbie.

Edited by punkxyz

Share this post


Link to post
Share on other sites

do your home work.. bring us your answers and when your stuck we can help.. but this is basic.. so basic the only people who ask are ones who want someone to do their homework for them..

here is a hint

for (int x = 0; x <=y)

{

ask for input..

}

search for loops on google...

tell me what this does..

for (; ; )

{

// ...

}

try it in your code today.. :)

Share this post


Link to post
Share on other sites

Firstly you just start loop and ask from user to enter the number, as user enter the loop will be run at that period of time, In the loop you just take input the numbers. in another loop you compare all the number for greatest number and lowest number.

Any problem then specify...

--------------------------------------------

HND Assignment Help

Edited by David Adam

Share this post


Link to post
Share on other sites

David Adam, Welcome to the forum !! You do realize this post is from 2009 don't you ?? 

Chuck

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this