Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use inheritance with the Inventory Maintenance application Can somone please hel

ID: 3592587 • Letter: U

Question

Use inheritance with the Inventory Maintenance application

Can somone please help me with this simple code?

I am new to programming and I do not know how to complete this assignment

The program must be in C# and must be extreamly easy to understand as I am new to programming.

Must be a Form application/ GUI

The directions to the code along witht the starting code are below

--------------------------------------------------------------------------------------------------

This is your old-new friend, that can be your final project.
Must use a simple GUI with radio buttons to select a business or economy class (you can use Add button to make selection.)
Use checkboxes to represent seats (obviously, selected are checked.)
Do your own study on checkboxes and radiobuttons.
Selections in each class are sequential (first available seat in class).
Basically, make UI for the provided console example.
Use separate classes for seats selection logic and GUI front-end.

Okay hopfully this will clear things up a little!

So this application is supposed to be a GUI that allows the user to reserve a seat on an airplane. There are two classes (First class, and business class) The user will need to pick a class and then click enter the GUI should display where the seat is located on the plane.

This is what the end product sould look like minus the user infomration entry part. (don't worry about that)

Welcome To Airline Reservation! Enter First Name First or Economy Class? Enter Last Name O First O Economy Enter Customer First: 4 Reset Save

Explanation / Answer

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Calculation;

namespace MiniCalculator
{
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
        }
        calculate cal = new calculate();
        //Addition Button click event
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                //storing the result in int i
                int i = cal.Add(int.Parse(txtFirstNo.Text), int.Parse(txtSecNo.Text));
                txtResult.Text = i.ToString();
            }

           catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        //Subtraction button click event

        private void button2_Click(object sender, EventArgs e)
        {
            Try
            {
                //storing the result in int i
                int i = cal.Sub(int.Parse(txtFirstNo.Text), int.Parse(txtSecNo.Text));
                txtResult.Text = i.ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}