Hi every one :
I need help with this C++ coding. thanks :
Write a program that defines and uses a class called Student. A student class should contain the following private data:

Student Number

Full name

An array of 7 marks for courses in the semester

Your class should have a default constructor, a constructor that allows specified values for all private data and methods (member functions) to return each of the private data items. Member functions should also be available to allow the full name and mark data items to be changed. You may add any additional member functions you think are appropriate.

Write a program that uses the a vector of Student items to store information for a semester. The program will maintain separate vectors which will give the course names and credit hours for the semester. (You can use another class for this if you wish). Use the following data for your parallel vectors or class:


Course Credits

COAP 220 3

COMP 221 4

COMP 222 5

CIRC 224 6

CIRC 246 7

MAT 230 8

TCOM 227 9

Your program should support the following menu driven functions:

○ Enter data for all data items in Student

○ Print a table of student ID's and marks showing course names as column headers.

○ Determine the semester weighted average of any student ID

○ Determine the class average for any course

○ Display the student name with the highest mark in any specified course

Recommended Answers

All 3 Replies

Welcome! Please post your question in the C++ section of the forum.

Welcome!

A couple of things:

1 - this is the introductions forum, not the C programming one.

2 - simply copying your homework assignment and expecting someone else to do it is not going to win friends or influence people (or get you any help - see the rules)

3 - despite all that, welcome to DaniWeb

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.