Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags

8 Posted Topics

Member Avatar for princessophia

This is the problem: Write a class whose constructor takes a vector of Student objects, where each Student has a name of type string and a score of type int. The class internally stores the data passed to it in its constructor. The class should have an overloaded output operator …

Member Avatar for dabotoshkundu.bappa
0
305
Member Avatar for princessophia

I am supposed to write a program that displays the first 10 lines of a file. I have a file named "characters.txt" in the same folder that my .cpp is saved in, but when I try to compile the program, it says the file cannot be found. Here is my …

Member Avatar for ling_tj
0
329
Member Avatar for princessophia

Here is the problem as it is written in the book: Write a function that accepts a C- string as an argument and returns the length of the C- string as a result. The function should count the number of characters in the string and return that number. Demonstrate the …

Member Avatar for Assembly Guy
0
255
Member Avatar for princessophia

This is the problem: Write a class EncryptableString that is derived from the STL string class. The Encryptable string class adds a member function void encrypt( ) that encrypts the string contained in the object by replacing each letter with its successor in the ASCII ordering. For example, the string …

Member Avatar for tinstaafl
0
1K
Member Avatar for princessophia

I have to create a program that uses a class Pstring derived from the STL class. The only error I am getting says that I have one unresolved external. How do I fix this? Here is my code: #include <string> class Pstring : public std::string { public: Pstring(const std::string &text) …

Member Avatar for iamthwee
0
218
Member Avatar for princessophia

This is the assignment: Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day of the month. For example, Day 2 would be January 2 …

Member Avatar for iamthwee
0
2K
Member Avatar for princessophia

For this assignment, I am supposed to get a starting population, an annual death rate, an annual birth rate, and the number of years to display. I am then supposed to use these values in the formula n = p*(1 + b)*(1-d), where n is the projected population, b is …

Member Avatar for Moschops
0
197
Member Avatar for princessophia

I am supposed to write a program that asks for the name of a pole vaulter and the dates and vault heights ( in meters) of the athlete’s three best vaults. It should then report in height order ( best first), the date on which each vault was made, and …

Member Avatar for UFOOOOOOOOOOO
0
282

The End.