Find Jobs
Hire Freelancers

AssignC++

$30-5000 USD

Closed
Posted about 21 years ago

$30-5000 USD

Paid on delivery
NEED BOTH 2nd one (1st one in Delliverables) using Object Oriented Programming using C++ Second Edition by Joyce Farrell. Please respond back so I can hire you. This problem is on p. 308 #6. I need your assistance with a homework assignment. We code on a Windows platform and use Visual C++. This chapter deals with Overloading Operators and should not be coded too advanced. I need this by no later than Friday morning. Please give me your price. Thank you, Katina. A. Design a Meal class with two fields, one that holds the name of the entree, the other that holds a calorie count integer. Include a constructor that sets a Meal's fields with arguments, or uses default values when no arguments are provided. B. Include an overloaded insertion operator function that displays a Meal's values. C. Include an overloaded extraction operator that prompts a user for an entree name and calorie count for a meal. D. Include an overloaded operator +() function that allows you to add two or more Meal objects. Adding two Meal objects means adding their calorie values and creating a summary Meal object in which you store "Daily Total" in the entree field. E. Write a main() program that declares four Meal objects named breakfast, lunch, dinner, and total. Provide values for the breakfast, lunch, and dinner objects. Include the statement total = breakfast + lunch + dinner; in your program, then display values for the four Meal objects. F. Write a main() program that declares an array of 21 Meal objects. Allow a user to enter values for 21 Meals for the week. Total these meals and display calorie total for the end of the week. ## Deliverables 1. You have a date class with members day, month and year, what would the stream-insertion operator function prototype be assuming you wanted it as a friend function? 2. What would be the logical return value for overloading the == operator? 3. Given the class below, what would the destructor for the class most likely do? class Politician { char *name; public: Politician() {name = new char[1024];} ~Politician(); }; 4. What would be a constructor for the class below? class Building { int floor; int room; public; //your constructor would go here }; 5. What would be the accessor function for the member hour in the class below? class time { int hour; int minute; int second; public: }; 6. Write an inline mutator function for the member minute in the class above. 7. What methods are needed for a simple pointer-based stack class? 8. What would be the implementation of the constructor for the dynamic array class below? class LotteryNumbers { int *numbers; int quantity; public: LotteryNumbers(int q); void print(); }; 9. In the Lottery class above, show with pseudocode or an actual implementation how the print method would display the lottery numbers. 10. In displaying a value in a linked list, what line of code would move a pointer called curr from one node to the next? 11. Social Security Numbers A Social Security Number (SSN) consists of nine digits, commonly written as three fields separated by hyphens: AAA-GG-SSSS. The first three-digit field is called the "area number". The central, two-digit field is called the "group number". The final, four-digit field is called the "serial number". Any SSN conforming to one of the following criteria is an invalid number: Any field all zeroes (no field of zeroes is ever assigned). First three digits above 770 This material comes from: [login to view URL] Create a class declaration for a social security number. NOTE: no implementation of the methods is necessary! The class should contain the following constructors: One that handles SSN's with dashes (585-12-1234). One that processes SSN's in the form of 3 integers representing the parts of the SSN. One that processes SSN's without dashes (585121234). Include a mutator function that allows you to change the SSN and an accessor function to display it as a single number. 12. Stock Market Linked List Using the program [login to view URL] found on the web site, add a method that searches the linked list for a stock symbol. If it finds it, it prints out the information associated with that stock. 13. Monthly Bonus Create a class with two methods. One that displays information about the salesperson (represented by an ID) who had the greatest sales volume and another which states the average sales volume. (I guess you can combine these needs into a single method.) You need to read the data from a file which is called [login to view URL] and is provided on the web site. ## Platform Visual C++6 Win2000/Win98
Project ID: 2928172

About the project

12 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
12 freelancers are bidding on average $33 USD for this job
User Avatar
See private message.
$17 USD in 14 days
4.9 (211 reviews)
5.8
5.8
User Avatar
See private message.
$29.75 USD in 14 days
5.0 (52 reviews)
5.1
5.1
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (29 reviews)
4.7
4.7
User Avatar
See private message.
$55.25 USD in 14 days
4.9 (78 reviews)
4.7
4.7
User Avatar
See private message.
$42.50 USD in 14 days
5.0 (9 reviews)
4.1
4.1
User Avatar
See private message.
$42.50 USD in 14 days
5.0 (16 reviews)
3.9
3.9
User Avatar
See private message.
$20.40 USD in 14 days
5.0 (18 reviews)
3.5
3.5
User Avatar
See private message.
$12.75 USD in 14 days
4.2 (6 reviews)
3.6
3.6
User Avatar
See private message.
$21.25 USD in 14 days
4.9 (10 reviews)
2.5
2.5
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (2 reviews)
0.0
0.0
User Avatar
See private message.
$106.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$21.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BANGLADESH
Bangladesh
1.3
3
Member since Mar 18, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.