Question: Create a program in C# This program must have the following characteristics: -Count=0 -Create a 2d array items. -string[,] items = new string [100,4] -Create

Create a program in C#

This program must have the following characteristics:

-Count=0

-Create a 2d array items.

-string[,] items = new string [100,4]

-Create a do while loop, when user enter 0, it stops the loop.

-User enters the item name, price, and quantity. Save this the information in the array.

-Increase count++

-Convert price (decimal, Convert.ToDecimal()) and quantity (int) to do multiplication for subtotal.

-Create a for loop (with count) to cycle through the items, display item name, price, quantity, and subtotal.

-Display total items, subtotal, and total at the end. Create a program in C# This program must have the following characteristics:

Note: There can be an infinite number of items. 0 stops the loop.

****************************************OUTPUT**************************************

Please enter items now.

Item Name (enter 0 to stop): __Apple__ (User types any name)

Item Price: __$1.80___ (User types any price)

Quantity: ____1____ (User types any quantity)

Item Name (enter 0 to stop): __carrots__ (User types any name)

Item Price: __$0.25___ (User types any price)

Quantity: ____3____ (User types any quantity)

Item Name (enter 0 to stop): __banana_ (User types any name)

Item Price: __$0.50___ (User types any price)

Quantity: ____2____ (User types any quantity)

Item Name (enter 0 to stop): ___0__ (User types 0 to stop loop)

YOUR RECEIPT This is generated automatically after 0 is entered)

Item Price Quantity Subtotal

Apple $1.80 1 $1.80

Carrots $0.25 3 $0.75

Banana $0.50 2 $1.00

3 items total This is the total number of items entered by the user. MUST BE SHOWN.

Subtotal: $3.55 This is the sum of the 3 items Subtotals

Tax (0.065%): $0.23 This is the Subtotal multiplied by 0.065

Total: $3.78 This is the sum of Subtotal and Tax

Name Price Quatity Subtotal o carrots 025 3 0.75 1 pineapple 125 2 2.50 2 apple 180 1 1.80 2 100 3 banana 0.50 4 Juice 250 2

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!