The Link Your Class | |
The Link of Requirement of This Assignment | |
The Aim of This Assignment | Self introduction |
MU STU ID and FZU STU ID | 20122543_832001317 |
About Myself
I am a student majoring in electronic information engineering from Maynooth International Engineering College of Fuzhou University. Although I am not good at software development and production. But I have a strong interest in it, and I want to believe that with my unremitting efforts, I will be able to become a software engineer.
About My Skill
1.Basic mastery of matlab software for part of the mathematical model modeling.
2.Basic command of C language, Python, C++ and other programming languages.
#include <iostream>
using namespace std;
class Vehicle;
void showVehicle(Vehicle& vehicle);
class Vehicle
{
protected:
int wheels{};
double weight{};
virtual void show();
friend void showVehicle(Vehicle& vehicle);
public:
Vehicle() = default;
};
void Vehicle::show()
{
cout << "wheels: " << wheels
<< "\nweight: " << weight;
}
void showVehicle(Vehicle& vehicle)
{
vehicle.show();
}
class Car : public Vehicle
{
private:
int passenger_load{};
void show() override;
public:
Car() = default;
Car(int, int, double);
};
void Car::show()
{
cout << "wheels: " << wheels
<< "\nweight: " << weight
<< "\npassenger load: " << passenger_load << "\n\n";
}
Car::Car(int passenger_load, int wheels, double weight)
{
this->passenger_load = passenger_load;
this->wheels = wheels;
this->weight = weight;
}
class Bike : public Vehicle
{
private:
double price{};
void show() override;
public:
Bike() = default;
Bike(double, int, double);
};
void Bike::show()
{
cout << "wheels: " << wheels
<< "\nweight: " << weight
<< "\nprice: " << price << "\n\n";
}
Bike::Bike(double price, int wheels, double weight)
{
this->price = price;
this->wheels = wheels;
this->weight = weight;
}
int main()
{
Car car{ 1, 2, 3.3 };
Bike bikes[2]{{ 4.4, 5, 6.6 }, { 7.7, 8, 9.9 }};
showVehicle(car);
Bike* p_bikes{ bikes };
for (int i{0}; i < 2; i++)
{
showVehicle(*(p_bikes + i));
}
}
About my lack of ability
1.Poor ability to complete code independently, lack of writing ability.
2.Not proficient with Github.
Amount of code
So far, the amount of code I have is just the amount of code from the assignments and exercises, which should be 1000 to 2000 lines? I'm not really sure.
Course Planning
I hope to improve my programming ability and increase my code through the software engineering course. At the same time, I also hope that I can have the ability to program independently and not rely too much on the help of existing codes on the Internet. I also want to be able to work with the team to create a satisfying project together.