Help for a newbie!

J

junebug68

A few of the guys in my department are trying to come up with a menu-driven
program to average grades,among other functions. We are not programmers,
but I think we could muddle thru if we only had a general layout for the
program. We want it to:
Input grades
Print Grades
Print grade average
Print highest grade
Print lowest grade
Sort grades
Exit the program.
From what I have read, this could be implemented as a large "switch", and
each option could be done with a "function". Could someone help with a
gneral layout for the program? Thanks!
 
V

Victor Bazarov

junebug68 said:
A few of the guys in my department are trying to come up with a menu-driven
program to average grades,among other functions. We are not programmers,
but I think we could muddle thru if we only had a general layout for the
program. We want it to:
[...]
From what I have read, this could be implemented as a large "switch", and
each option could be done with a "function". Could someone help with a
gneral layout for the program? Thanks!

What about your programming course instructor? Is he/she available so
you could ask him/her? Or are you learning by correspondence? What books
on C++ are you reading?
 
J

Josh Mcfarlane

junebug68 said:
A few of the guys in my department are trying to come up with a menu-driven
program to average grades,among other functions. We are not programmers,
but I think we could muddle thru if we only had a general layout for the
program. We want it to:
Input grades
Print Grades
Print grade average
Print highest grade
Print lowest grade
Sort grades
Exit the program.
From what I have read, this could be implemented as a large "switch", and
each option could be done with a "function". Could someone help with a
gneral layout for the program? Thanks!

Honestly, assuming you are not trying to do this for a homework
assignment, you can do two things:
A. Ask a computer programmer from another department (Computer Science
is a plus) if they'd be interested in coding it for you (probably not).

B. Use a spreadsheet program. If you're not looking for a centralized
database or "collection of grade informat", then 99% of spreadsheet
applications will be able to do these simple calculations. Some of them
even have macro tools that make it so you can put all of the
calculations (such as print grade average, etc) on a button.

Then of course, that'd be taking the easy route, and since this is
homework, that's not allowed. Shame on you trying to cheat.
 
J

junebug68

Don't have a course instructor. We work in a print shop at a community
college. I have an old "C Primer Plus", by Stephen Prata, gotten from the
library.
 
J

junebug68

I know this could be done in Excel, but we don't have access to it. I am an
employyee at a community college. I work in a print shop. This is not my
(or anyone else's) homework. But thanks for your concern.
 
J

Josh Mcfarlane

junebug68 said:
I know this could be done in Excel, but we don't have access to it. I am an
employyee at a community college. I work in a print shop. This is not my
(or anyone else's) homework. But thanks for your concern.

Oh, my apologies then. Honestly though it's going to be a big pain to
program in C++ and not worth your time just for that. If you don't have
access to Excel, you can download a free spreadsheet program to do it
too.

Check out http://www.openoffice.org/ for a MS Office similar suite.

Just out of curiosity, why does a print shop need to worry about
grades? I figured the Computer Services department would handle the
grade software.

HTH,
Josh McFarlane
 
V

Victor Bazarov

junebug68 said:
Don't have a course instructor. We work in a print shop at a community
college. I have an old "C Primer Plus", by Stephen Prata, gotten from the
library.

Then I strongly recommend against using C++ for that. You'd need to learn
too much before you accomplish anything. Use something simpler, like
Python or Visual Basic or Java. All of them have GUI subsystems, all are
OO (kinda).

V
 
A

Arne Claus

A few of the guys in my department are trying to come up with a menu-driven
program to average grades,among other functions. We are not programmers,
but I think we could muddle thru if we only had a general layout for the
program. We want it to:
Input grades
Print Grades
Print grade average
Print highest grade
Print lowest grade
Sort grades
Exit the program. From what I have read, this could be implemented as
a large "switch", and
each option could be done with a "function". Could someone help with a
gneral layout for the program? Thanks!

That sounds to me like "input form, store data, display form" which
IMHO can be excelently solved by a web-driven solution like PHP /
MySQL. This is IMHO a bit easier to learn and you don't have to mess
around with GUI-APIs plus tutorials are everywhere around.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,415
Latest member
SharonCran

Latest Threads

Top