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
~15.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for preet4fun

[CODE]#include <iostream> #include <iomanip> #include <string> #include <cctype> #include <cstring> using namespace std; const int NUMROWS = 14; const int NUMSEATS = 7; //enum seatsType {A,B,C,D,E,F}; void initPlane(char plane[NUMROWS][NUMSEATS]) { int x,y; //strcpy(plane[2], "Row 1"); plane[0][0] = ' '; plane[0][1] = 'A'; plane[0][2] = 'B'; plane[0][3] = 'C'; plane[0][4] = …

Member Avatar for Gozo Anne
0
9K
Member Avatar for preet4fun

The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets--box, sideline, premium, and general admission. After each game, data is stored in a file in the following form: ticketPrice numberOfTicketsSold ... Sample data …

Member Avatar for NathanOliver
0
2K
Member Avatar for preet4fun

"""2) When testing software, it can be useful to count the number of times that a function is called. Without using any lists or dictionaries, define a higher-order function count_calls that returns two functions: - a counted version of the original function that counts the number of times it has …

Member Avatar for TrustyTony
0
217
Member Avatar for preet4fun

A bank updates t customers'' accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer's balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 …

Member Avatar for puranchandra248
0
2K
Member Avatar for preet4fun

Write a program that shows a constructor passing information about constructor failure to an exception handler after a try block. What do i really need to do ?

Member Avatar for siddhant3s
0
140
Member Avatar for preet4fun

Write a program that uses inheritance to create various derived classes of runtime_error . Then show that a catch handler specifying the base class can catch derived-class exceptions? am i doing it rite this is my code : [CODE]#include <stdexcept> #include <exception> using std::runtime_error; class DivideByZeroException : public runtime_error { …

Member Avatar for siddhant3s
0
144
Member Avatar for preet4fun

enum Days { Sunday, Monday, Tuesday, Wednesday,Thursday, Friday, Saturday }; for( Days d = Sunday; d < Saturday; ++d ) cout << "d is: " << d << endl; C++ won't know how to increment d unless we define how that operator works for the type Days. Overload operator ++ …

Member Avatar for Ancient Dragon
0
71
Member Avatar for Mighty

Hello everyone. I am taking a C++ program at my college.. and i find it pretty difficult honestly.. but, i have to get the hang of it due to my major. If someone could help with this problem It would be appreciated.. A retail company must file a monthly sales …

Member Avatar for preet4fun
0
392
Member Avatar for tarekkkkk

plz help and yes submit a direct link if u can and thx for advance plz hurry up i have assignment next week i have to finish it lol

Member Avatar for jbennet
0
790
Member Avatar for Shinedevil

I need to find out, because my program deals with numbers, how to block characters from being inputted. Such as, [code] int input; cout<<"Please type in a number."<<endl; cin>>input; //input should be a number. A letter? Oh no. [/code] if the input would have been a character, BOOM! Program == …

Member Avatar for StuXYZ
0
169
Member Avatar for preet4fun

i nees to make a function to output students name in the form last name followed by a comma followed by a space followed by the first name and the name must be left justified than next to it need to print the student score and student grade like this: …

Member Avatar for Lerner
0
85
Member Avatar for preet4fun

[CODE]#include <iostream> #include <string> #include <vector> #include <fstream> #include <iomanip> using namespace std; void getData(ifstream& infile, vector<int>& itemID, vector<string>& itemName, vector<int>& pOrdered, vector<int>& pInStore, vector<int>& pSold, vector<double>& manufPrice, vector<double>& sellingPrice); void do_again(),usersChoice(char ans); void searchInventory(string searchInput); void printReport(); void printHeading(); void sellStock(string sellItem, int numSold); int showMenu(); int ans(); vector<int>itemID, …

Member Avatar for preet4fun
0
164
Member Avatar for preet4fun

here is the assignment . To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number more meaningful, companies might use more than …

Member Avatar for Salem
0
202