Question: (C# ONLY PLEASE) Create a program for an Ice Cream Shop. The program will store data about ice cream cones and customers. 1. Create a
(C# ONLY PLEASE)
Create a program for an Ice Cream Shop. The program will store data about ice cream cones and customers.
1. Create a Cone class that includes a choice of ice cream or yogurt, the flavor, the number of scoops and type of cone a.This class should also include static data members for the cost per scoop (.50), cost per ice cream cone (.75) 2. Create a Customer class that includes last name, first name and CustomerID number a. Store the Customer data to a file. You may not have data about the same customer in your file more than once 3. Create an Order class that includes a Customer object and an array of 10 Cone objects (the maximum number of ice cream cones a customer can order is 10) 4. Display all order information and totals
Your application must include the following:
Constructors Delegate Arrays Abstract Class or Interface Exception Handling Static Data Members Overloaded Operator or overridden method MessageBox Inheritance Data Validation File Input/Output Value Added - something not listed above */
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
//class that contains main method class FinalProject { //begin main program public static void Main(string[] args) { //define variables
//main logic } }
//Customer class class Customer : IComparable
//contructor to initialize customer info public Customer() { custNum = 999; custFName = "ZZZ"; custLName = "ZZZ"; } //override Equals method to compare by customer number public override bool Equals(object e) { Customer temp = (Customer)e; return this.custNum == temp.custNum; }
//override gethashcode method to return customer number public override int GetHashCode() { return custNum; }
}
//Cone class class Cone { //define class fields
//constructor to receive values
//constructor for initialization
}
//Cone class class Order { //define class fields
//constructor to receive values
//constructor for initialization
}
(I WANT TO HELP TO CREATE ORDER CLASS BASED ON THIS CODE)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
