Menu

Program Must C Create Enum Call Item Declare 20 Values Enum Name Based Preference Create Q43781736

  1. The program must be in C#
  2. Create an Enum and call it “Item”. Declare 20 values in theEnum and name them based on your preference. Create a structurecalled “Order”. Declare an Item and a double for the item price.Create a structure called “Package” where it has an Order pointer,integer for the size, string for the address, package id and billdetails. In the main, declare a Package and assign to it more than3 items. Create a string returning function called“generateBillDetails” that takes a Package as constant referenceand return the bill details as string. Don’t create a stringvariable/object in the main or outside the main to store thereturned value. Store the returned string in the Package. Show thebill string on the console.

Sample Example:

Package ID    : #4546-786-543-06-5g

Address       : United States, TheCrazy State, Porgareta, Senti-Marraia, St. 12, Villa #2

Ordered Items : Car           $2,500.00

               Chair            $60.00

               Door            $100.00

               Computer        $999.50

               Aircraft     $150,000.01

              ————————–

               Total:       $153,659.51

Expert Answer


Answer to The program must be in C# Create an Enum and call it “Item”. Declare 20 values in the Enum and name them based on y…

OR