Hey everyone, I haven't been here in sometime but I'm in need of some guidance. One of the questions I have is how do I enter the name, length, and time for each course? Thanks in advance for the help. Here's what I'm supposed to do: Using OOp inheritance and polymorphism, create four classes as follows: (1) CSci_Course: -an abstract class with virtual function getClassTime(); Reason: it is meaningless to have a real classTime for a general CSci class. -with variables classTime, length, className; (2) CSci_41: -an implementation of function getClassTime(); -with variable classTime, className; -Constructor with arguments of classTime, …

Member Avatar
Member Avatar
+0 forum 10

Hello everyone, I haven't been stuck in quite some time, but I'm stuck. I have to read a list of names from a file, then sort them, then write the sorted names to a second file. I've been going to forum and reading articles on line but I don't understand how to read or write from a file. Do I make a text file in notepad first? As I've said in my previous posts I'm not looking for someone to do my work for me, but I'm looking for someone to guide me in the right direction. Thanks for the …

Member Avatar
Member Avatar
+0 forum 1

Hey everyone, I'm new to C++ programming and have just started the semester and having a bit of trouble with my second homework assignment. Here's the assignment: Write a program that accepts a 7-9 digit integer andechoes the number with commas between every three digits from the right. Here's what I have so far: [code] #include <iostream> using namespace std; int main() //Needed in every program, where program execution begins { int number; cout << "Please enter a 7 to 9 digit number" << endl; cin >> number; cout << "The number you entered is: " << number << endl; …

Member Avatar
Member Avatar
+0 forum 5

The End.