Question: The program must be in C# Create an Enum and call it Item. Declare 20 values in the Enum and name them based on your

  1. The program must be in C#
  2. Create an Enum and call it Item. Declare 20 values in the Enum and name them based on your preference. Create a structure called 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 bill details. In the main, declare a Package and assign to it more than 3 items. Create a string returning function called generateBillDetails that takes a Package as constant reference and return the bill details as string. Dont create a string variable/object in the main or outside the main to store the returned value. Store the returned string in the Package. Show the bill string on the console.

Sample Example:

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

Address : United States, The Crazy 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!