Find Jobs
Hire Freelancers

Simple C++ Inheritance program

$10-30 USD

Đã hủy
Đã đăng vào hơn 6 năm trước

$10-30 USD

Thanh toán khi bàn giao
- Make a class Vehicle with a member function to set the gas mileage, which is stored in a data - Add member function display to write on the screen the vehicle’s gas mileage - Make a class Car which inherits from Vehicle - Add a member function to Car to set the maximum number of passengers, which is stored in a data member - Add member function display to Car which writes the number of passengers on the screen and the gas mileage by using the base class display function - Make a class Truck which inherits from Vehicle - Add a member function to Truck to set the maximum payload, which is stored in a data member - Add member function display to Truck which writes the payload on the screen and the gas mileage by using the base class display function - Use the following main function to obtain the given output #include <iostream> #include "Vehicle.h" using namespace std; int main() { Car sedan; Truck bigRig; [login to view URL](25); [login to view URL](5); [login to view URL](); cout << endl; [login to view URL](15); [login to view URL](200); [login to view URL](); cout << "press any key to continue..." << endl; getchar(); return 0; } Given output should be as follows: This car seats 5 passengers Gas mileage is 25 MPG This truck has a payload of 200 tons Gas mileage is 15 MPG press any key to continue...
Mã dự án: 15188431

Về dự án

5 đề xuất
Dự án từ xa
Hoạt động 7 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
5 freelancer chào giá trung bình $23 USD cho công việc này
Avatar người dùng
I am excellent developer with 3 year experience in your related project field can do this project as you are saying. If you are worry about your project then I am best choice for you. Relevant Skills and Experience C++ Programming Proposed Milestones $25 USD - def
$25 USD trong 1 ngày
5,0 (1 nhận xét)
1,2
1,2
Avatar người dùng
Hello, I have read the project description in detail with full care and concentration. Now I would love to talk to you once to understand about the project better. Relevant Skills and Experience I am a Developer with 3+ years of experience in Web Development, Template Creation/Customization, PHP, Software Architecture, and JavaScript, jQuery, HTML5, CSS3 and Responsive design development. Proposed Milestones $20 USD - Pay me when you are satisfied.
$20 USD trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Decatur, United States
5,0
27
Phương thức thanh toán đã xác thực
Thành viên từ thg 3 30, 2014

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.