Answered step by step
Verified Expert Solution
Link Copied!

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

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago