--- In [email protected], "olubodunakinyele"
<[EMAIL PROTECTED]> wrote:
>
> please, i want to write a programme that will display controls at the
> input of the number of courses one is doing, that will receive the
> unit of the course and the points for each of the courses. The
> programme will then multiply each point with the unit, add it all
> together and then divide by the total number of the unit. i have
> tried
> using a while, do, for and foreach statements and they are not doing
> what i wanted them to do.plz i will so much appreciate if the answer
> to this question could be as prompt as possible!
> thanks.
>
So you want to load a data file from the hard drive, into a struct that
matches the number of fields, for each course record, right?
Then, when you have the right course number which matches the input of
the user, you need to do some small amount of calculation.
The important thing is that the struct have the right number and type
of data types, which will match up with the number and data type of the
data fields in the course file.
A while loop is one good way to code this up.
While (course_rec_from_file does not equal users_request)
input another record from the data file
If you'll post up your code to attempt this, we can give a lot better
info to *help* out.
If you're waiting for someone to just post up your program, you may be
in for a long wait. We like to have programmers from our schools,
actually work - and thus learn, to program.
If you're stuck right from the start, ask any question you need
answered. But don't ask for someone to do your homework for you. That's
not what we're about.
Dave
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/EbFolB/TM
--------------------------------------------------------------------~->
>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at
http://www.eScribe.com/software/C-Paradise/
>------------------------------------------_->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/C-Paradise/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/