Question: Programming c# is required , please answer the codes as it required each question alone and make screenshot of the out put for each question

Programming

c# is required , please answer the codes as it required each question alone and make screenshot of the out put for each question

Assessment Bonus

Campus Bikes is a popular bicycle shop located near a major university. The business has grown and the owner, Saultan Yaqoub, wants to install an up-to-date computer system to handle all business functions.

Background

Campus Bikes sells several brands of new bikes, including everything from high-end racing models to beach cruisers. In addition to sales of new bikes and accessories, Sultans service department is always busy. The staff includes Sultan himself, a bookkeeper, two part-time sales reps, a full-time mechanic, and several part-time service helpers who assemble bikes.

Before opening the shop three years ago, Sultan worked for many years in his fathers auto dealership, Kuwait Motors, and he learned all about the automobile business. In the bike shop, he runs a similar operation, but on a much smaller scale. For example, sales orders are recorded on pre-printed forms, and service requests are written up just as they would be in an auto service department.

Sultans customers find him fair and reasonable. He likes to say that the main difference between his business and a big-box retailer is that he knows his customers and will do whatever it takes to keep them happy.

You work at the college as a lab assistant in the computer information department. You earned a computer science degree at a two-year school, and you recently decided to work toward your four-degree. The computer lab manager, Fariza, often suggests that local businesses contact you for help in troubleshooting IT issues.

This morning, you received a call from Sultan, who wants to hire you as a consultant to help plan a system for Campus Bikes. You learned that Fariza had referred him, and you are excited to have this opportunity. It probably didnt hurt that both you and Fariza had bought bikes from Sultan, and already knew him. After spending several weekends talking with Sultan and the staff, you are ready to start. You decide to use an object-oriented approach that will be easy to understand. You decided to use prototyping methodology, and to create simple system prototype in C# that will simulate Bike system processes.

(20 pts each*5 = 100 pts)

  1. Create class Bike that has 4 attributes, and 2 methods. Create Bike object and test its attributes and methods. One of the attribute should be price in KD.

You code for Bike class

Program output with time and date shown

  1. Write the code to declare a destructor for Bike class and display message Class instance Bike is destroyed in the console:

You code for Bike class

Program output with time and date shown

  1. Create constructor for Bike class that will take 4 parameters. Declare an object MyBike using your constructor.

You code for Bike class

Program output with time and date shown

  1. Write the code to declare method named convertKDtoUSD which which will print to Console price in USD. Test the method.

You code for Bike class

Program output with time and date shown

  1. Create child class MountainBike. Test your child class by creating instance of an object and calling methods.

You code

Program output with time and date shown

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!