1. Write an Data structure that has the following fields:
Month
Day
Year
Write a program to read in the day (1 鈥?31) , month (1-12) and year (4 digits) from the user and display them in different formats shown below:
i. 2 / 6 / 2006
ii. Jun 2, 2006
1. Create a class named Student that has the following private data members:
char name [30]
int subjects [3]
and the following public member functions:
total() 鈥?used to calculate and return the total of the three subjects
average() 鈥?used to calculate and return the average of the 3 subjects
setName() 鈥?used to change the name of a student
setSubjects()- used to change the marks for the 3 subjects (take 3 arguments)
display() 鈥?used to display all the details of a student (name, subject marks, total, and average)
Write a client program (main()) to create 2 records of students and display all of their information on screen using the functions provided by the class Student.
(yourname_classStudent.cpp)How to write C++ coding for this?
buy this book from amazon:
';C++ For Dumbass';
i am not trying to offend you.. there are alot of great things in there and there is also a similar problem
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment