Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
- 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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started