Question
C# Console Application 1. Within Program.cs, create a class named Automobile with the following: a. Appropriate PDC (Programmer-Defined Contructor) and PDDC (Programmer-Defined Default Contructor) b.
C# Console Application 1. Within Program.cs, create a class named Automobile with the following: a. Appropriate PDC (Programmer-Defined Contructor) and PDDC (Programmer-Defined Default Contructor) b. Appropriate getters and setters c. Methods to increase speed, decrease speed, and show speed d. Instance members to track speed, make, model, and color Using the Automobile class: a. Ask users how many Automobiles they would like to create b. Request users to input make, model, and color (different property values for each automobile) c. Allow users to change speed and report the new speed 2. Create a class named Restaurant in its own class file with the following: a. Appropriate PDC and PDDC b. Classic properties for: i. City ii. Chef iii. Cuisine Type iv. AAA Diamond Rating (1-5) c. Method to return all properties concatenated together into a user readable string 3. Create a class Painting in its own class file with the following: a. Appropriate PDC and PDDC b. Auto-implemented properties for the following: i. artist ii. genre iii. country iv. year v. wholesale price Using the Painting class: a. Ask users how many Paintings they would like to create b. Request users to input appropriate data for each painting c. Method to calculate the Painting object retail price based on the following formula: i. retailPrice = wholesalePrice + commission + tax + duty;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started