Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
public class Car
{
//properties
public string Model
public int EngineNum
private int EngineCapacity
public Enum FuelType (Petrol,Diesel,EV,Hydrogen)
private int SeatingCapacity
private int SeatRows
private Enum Color (White,Red,Black)
private int Tyresize
public string TyreBrand
public int ExternalHeight
public int ExternalWeight
public Enum SterioType (Basic/Android/Touch) (Optional feature)
private bool ReverseCameraExist (Optional feature)
private Enum CarType (Hatchback/sedan/SUV)
public Enum TransmissionType (Manual/ Auto)
public int NumberOfGears


//methods
public string GetCarModel();
public int GetCarEngineRPM()
public int GetCarSpeed()
public void TurnOnSterio() (Optional feature)
public void PlayNetflix() (Optional feature)
public Location getCarGPSLocation() (Optional feature)
public void SetCruiseControlSpeed(int speed) (Optional feature)
public bool OpenDoor(Enum Doortype type) (FL,FR,RL,RR)
public bool OpenAllDoors()
}


What I have tried:

I Have tried it at my end, but I want to know another person's way to do this.
And then identify what is the difference in my approach.
Posted
Updated 4-Jan-23 23:30pm
Comments
Graeme_Grant 5-Jan-23 4:12am    
This is not a free coding service. Try fiverr[^], they would be more than happy to do it for you.
CHill60 5-Jan-23 4:49am    
If you have tried it at your end then share what you have tried. We can then constructively critique your work. As things stand it looks as if you are asking us to do your assignment for you, and we will not do that.
PIEBALDconsult 5-Jan-23 21:25pm    
You can.

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900