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.5K People Reached
Favorite Forums

13 Posted Topics

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
239
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
154
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
159
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
83
Member Avatar for Mighty

line 23 endl and semicolan are missing . erase line 3 and evrything else is fine

Member Avatar for preet4fun
0
409
Member Avatar for tarekkkkk

[url]http://www.bloodshed.net/dev/devcpp.html[/url] go and download dev-cpp it works on my vista laptop ..and guys this was so funny but when i started doing c++ 2 months back i might have asked the same question ..hehe

Member Avatar for jbennet
0
890
Member Avatar for Shinedevil

C/C++ assumes input is valid. If you don't trust the user to do that and you want to protect the program from doing something you don't want it to, then you have to program in data validation. In this case you can use a loop to control input. [CODE]bool needInput …

Member Avatar for StuXYZ
0
266
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
90
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
175
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
217

The End.