C++ programmers come in here

DaviDaVinci

Golden Member
Dec 28, 2000
1,345
0
0
I need a C program converted to C++. Any takers. $$ Let me know. If this is against posting rules, I couldn't find anything, Let me know.
 

tweakmm

Lifer
May 28, 2001
18,436
4
0
how would you want the translation to go? would you want it to be reprogramed as an object oriented program, or just a literal translation?
 

DaviDaVinci

Golden Member
Dec 28, 2000
1,345
0
0
i had my uncles employees do this for a friend but they did it in C and now they are too buy with other projects to do it in C++. It's not complicated. I just suck at programming (not my thing). Below are the exact instruction as per given:

All programs must have separate files for each class (.h and .cpp) . A minimum of 5 files is thus required. The author?s name must be included in a comment in each file (Davinder Toor).

Each class must have a default constructor, any required constructor overloads with arguments, a copy constructor, and a destructor. An operator overload for = must be present to allow a statement like
AClass1 = AClass2; where AClass1 and AClass2 are objects of type AClass. Each program shall have a driver program to manipulate the classes as specified in the problem statement. It does not have to have a graphical user interface but may have one if you desire. It must conform to the problem specification as far as user input options is concerned, however.

You should begin with a design. This is probably best done by drawing pictures of flow charts on paper. If you are doing a graphical user interface, a picture of that is useful. Turn in these sheets with your project.

J. Fred Abernathy wants to design a building for housing his prosperous cell phone manufacturing business. He has asked you to write a computer program to help him decide what kind of building to build. The building is made up of rooms that may be on one of several floors. However, its overall shape must be rectangular solid (brick-shaped.) There must be one room for the manufacturing that is 100 ft. x 200 ft. that must be on the ground floor. His office must be at least 900 square feet and must be on the top floor. He has three vice presidents whose offices must be at least 600 square feet in area. Each floor must have a 10-ft x 20-ft restroom. Each vice president has 7 staff who need approximately 300 square foot offices. Each staff has 5 workers entitled to minimum 150 square foot offices. The rooms can vary from square (length to width = 1) to a length to width ratio of 1.6. The cost of building ground floor rooms is twice that of putting the same room on an upper floor. ($30/square foot vs. $15/ square foot.) A room needs to have length, width, and area (functions to compute the third field automatically when new data is received) and the rooms together make up the building. Rooms also have a floor designation but floors are not regarded as objects that are collections of rooms. Wasted space must be paid for. Ignore hallways. A building is a collection of rooms. Devise a program that creates buildings in which the rooms fit, show 4 or more designs to Mr. Abernathy, and display, for his choice, rooms with occupant type, size (area), cost, length, width, and floor. His choice is also recorded in a file for future reference. The file records the data shown on the screen. The rooms do not need to fit perfectly together but any space not used in the rooms on a floor must be counted in the cost.

 

DaviDaVinci

Golden Member
Dec 28, 2000
1,345
0
0
Oh, regarding the translation. It's already done in C, but it needed to be in C++ (classes). Might need to be written from scratch. PM me for an e-mail attachment of the C prog.
 

Beattie

Golden Member
Sep 6, 2001
1,774
0
0
I believe one of the requirements is that all C programs compile in C++, therefore you don't have to make any changes to it to make it a "C++" program

 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0


<< I believe one of the requirements is that all C programs compile in C++, therefore you don't have to make any changes to it to make it a "C++" program >>



it looks like he wants a functional --> oop transistion
 

DaviDaVinci

Golden Member
Dec 28, 2000
1,345
0
0
school just started this week, i don't think students are assigned homework so early, anyhow, it 'is' an homework problem. it's from like semesters ago. I'm trying to do it cause I hear students get the same problems assigned. (don't start morality with me YOU!!!) Trading old projects with friends. Oh yeah, it needs classes.

If you can't help, keep it to yourself, but don't flame please.
 

RedFox1

Senior member
Aug 22, 2000
587
0
76
It *is* immoral, and you can also get thrown out of school for this sort of thing. I've seen it happen.

-Russ
 

BearX00

Senior member
Nov 28, 2000
208
0
0
sorry no can do.. you should reconsider doing this because it could get you kicked out of school or in deep trouble. believe me ive been there. if it wasnt for school or something id do it for ya but no can do.
gl
 

miniMUNCH

Diamond Member
Nov 16, 2000
4,159
0
0
You'll never learn to develop software by reading other people's code...becoming a good programmer is an experience in reforming the way you think analytically...taking short-cuts by-passes that process. But suit yourself.

BTW...that problem is not that hard. I haven't programmed in C++ for a while and I think I could write that program right now...with some syntax errors, no doubt.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |