Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment covers classes, strings, and files (refer to chapters 9, 10, 11, 12, and 14 in the assigned text and the related sample programs

This assignment covers classes, strings, and files (refer to chapters 9, 10, 11, 12, and 14 in the assigned text and the related sample programs and the notes discussed in the class). Enough flexibility are provided for you to apply your knowledge of the basic C++ programing to develop a solution with enough information and documentation as needed for this assignment.

Develop a model of the problem you are developing. This is different from the flowcharting you have been doing throughout the semester. Make sure the model reflects the problem statement. You then need to develop a C++ program to solve the problem stated by you.

Define a class Course with appropriate data member(s) and member functions (at least constructors and a destructor for each class.)

Define the class CName derived from the class Course that will create the course name, like ELET, with appropriate data member(s) and member functions (at least constructors and destructor for each class) and writes the Course name in the file courseN.txt.

Define the class CNum derived from the class Course that will create the course number, like 2300, with appropriate data member(s) and member functions (at least constructors and destructor for each class) and writes the course number in the file cnum.txt.

You will create an object of the class CName and an object of the class CNum using the default constructors and constructors with arguments.

The default constructors initialize the two objects CName1 and CNum1. An overloaded constructors will obtain the course name and the course number from the keyboard and create objects CName2 and CNum2.

The program will then reads the course name and the course number from the files and writes both files to the file MyCourse and displays the full course using the function displayCourse() to display the course name and the course number in the format shown below.

CName CNum

Once the full courses are displayed for all objects are displayed, the program ends.

Other member functions for the classes are defined by the programmer and as a minimum will include constructors, destructors, accessor, and mutating functions. User-defined functions will be used as needed to solve your problem.

This program leaves out a few options for you to select.

image text in transcribed

Grading Program model Choice of data selected Documentation Proper development of classes, and member functions Program completeness Sample correct outputs 15 points 5 points 10 points -problem statement, class, member functions, main0, etc 45 points 15 points, this includes program correctness, efficient programming, using right constructs for the solution, and proper use of coding as emphasized in c lass 10 points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

What are Electrophoresis?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago