Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I am a coding student who needs a little help on one of my assignments. I've been banging my head against a wall for

Hello I am a coding student who needs a little help on one of my assignments. I've been banging my head against a wall for the last two days and I just need someone to either explain to me how exactly I go about doing this program or if you would be so kind, do the program and then explain what you did and why you did it. The main issue I have is the inheritance portions and how exactly I would get all of this information to display on a form. I hope I provided enough information the prompt is below, Thanks in advance!

The language is C#

Here is the coding Prompt:

Assignment 5 DaVinci -Inheritance assignment

Complete an application for DaVinci College using inheritance. Save all classes and GUI in one folder to submit as zip file.

Create an abstract class name Student and two inherited classes OnCampus and OffCampus. Make sure you create Class Library .Net Framework Project for all classes. The abstract class will have: 1) A return method which returns the cost of credit hours; 2) An override function ToString; and 3) an abstract method to calculate the total charges. In the abstract class declare needed variables and methods inherited classes use as protected. Use Enum for the type of housing.

Credit Hour costs for both On Campus and Off Campus are $500 per credit or $ 7500 for 15 or more credits.

On Campus students must select housing which are: Paris Dorm-$6000, Rome Dorm-$6500, and London Dorm-$5000. The Off Campus selects an automobile charge which is $500 if checked or $0.00 not checked.

Residence and Housing are Group Boxes. The output is displayed in a Multiline Text Box. The Housing group box will display when an OnCampus is clicked and Automobile will display when an OffCampus is clicked. (CheckedChange event).

Use Error provider for ID, Name, Credits, and Group Box items. In GUI check that credit hours are numeric. The Total Fee is from the ToString method, and it will display the students ID, name, credit hours, credit charges, housing fee for on campus, automobile charge for off campus, and total fee. At startup do not display Residence or Automobile. Make program bullet-proof.

image text in transcribed

This is what the form should look like

image text in transcribed

image text in transcribed

Assignment 5 DaVinci -Inheritance assignment Complete an application for DaVinci College using inheritance. Save all classes and GUI in one folder to submit as zip file. Create an abstract class name Student and two inherited classes OnCampus and OffCampus. Make sure you create Class Library .Net Framework Project for all classes. The abstract class will have: 1) A return method which returns the cost of credit hours; 2) An override function ToString; and 3) an abstract method to calculate the total charges. In the abstract class declare needed variables and methods inherited classes use as protected. Use Enum for the type of housing. CC Class Library (.NET Framework) A project for creating a C * class library (.dil) Credit Hour costs for both On Campus and Off Campus are $500 per credit or $7500 for 15 or more credits. On Campus students must select housing which are: Paris Dorm- $6000, Rome Dorm- $6500, and London Dorm- $5000. The Off Campus selects an automobile charge which is $500 if checked or $0.00 not checked. Residence and Housing are Group Boxes. The output is displayed in a Multiline Text Box. The Housing group box will display when an OnCampus is clicked and Automobile will display when an OffCampus is clicked. (CheckedChange event). Use Error provider for ID, Name, Credits, and Group Box items. In GUI check that credit hours are numeric. The Total Fee is from the ToString method, and it will display the student's ID, name, credit All Controls Startup DaVinci College gudent ior. thulest nare Tultion fee Error Provider Credit Hours DaVinci College DaVinci College Sulet 0 Beduet ane Wumber if reits Ficileteot O of impa 0 Oonamsis Dutiomoble On Campus Click Off Campus Click Aatsmeble

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

2. Discuss the steps in preparing a manager to go overseas.

Answered: 1 week ago