1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
const2013 [10]
3 years ago
5

(Will cashapp you & name you brainliest!!!!!)

Computers and Technology
1 answer:
Angelina_Jolie [31]3 years ago
6 0

The UI is in the picture below.

Here is the code. If you want a ZIP let me know.

Public Class Form1

   Private _orderNumber As Integer = 0

   Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

       Dim oi = New OrderItem With {.Name = "Large", .Price = 4}

       rbnLarge.Tag = oi

       rbnLarge.Name = oi.Name

       oi = New OrderItem With {.Name = "Medium", .Price = 3.25}

       rbnMedium.Tag = oi

       rbnMedium.Name = oi.Name

       oi = New OrderItem With {.Name = "Small", .Price = 2.5}

       rbnSmall.Tag = oi

       rbnSmall.Name = oi.Name

       Dim MeatOptions = {New OrderItem With {.Name = "Turkey", .Price = 0.6},

           New OrderItem With {.Name = "Ham", .Price = 0.6},

           New OrderItem With {.Name = "Roast Beef", .Price = 0.6}}

       clbMeatOptions.Items.AddRange(MeatOptions)

       Dim Fixings = {New OrderItem With {.Name = "Lettuce", .Price = 0.1},

           New OrderItem With {.Name = "Tomato", .Price = 0.25},

           New OrderItem With {.Name = "Mustard", .Price = 0.0},

           New OrderItem With {.Name = "Onion", .Price = 0.1},

           New OrderItem With {.Name = "Cheese", .Price = 0.5},

           New OrderItem With {.Name = "Mayonnaise", .Price = 0.0}}

       clbFixings.Items.AddRange(Fixings)

       ResetInterface()

   End Sub

   Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click

       Dim Price As Double

       If rbnLarge.Checked Then

           Price = TryCast(rbnLarge.Tag, OrderItem).Price

       ElseIf rbnMedium.Checked Then

           Price = TryCast(rbnMedium.Tag, OrderItem).Price

       ElseIf rbnSmall.Checked Then

           Price = TryCast(rbnSmall.Tag, OrderItem).Price

       End If

       For Each item In clbMeatOptions.CheckedItems

           Price += TryCast(item, OrderItem).Price

       Next

       For Each item In clbFixings.CheckedItems

           Price += TryCast(item, OrderItem).Price

       Next

       txtSubTotal.Text = String.Format("${0:0.00}", Price)

       Dim Tax As Double

       Tax = Price * 0.079

       txtTax.Text = String.Format("${0:0.00}", Tax)

       txtTotal.Text = String.Format("${0:0.00}", Price + Tax)

       _orderNumber += 1

       lblOrderNumber.Text = String.Format("{0:D4}", _orderNumber)

       MessageBox.Show("Please thank the customer for their business!!")

       ResetInterface()

   End Sub

   Private Sub ResetInterface()

       rbnMedium.Checked = True

       ClearCLB(clbMeatOptions)

       ClearCLB(clbFixings)

       txtSubTotal.Text = ""

       txtTax.Text = ""

       txtTotal.Text = ""

       lblOrderNumber.Text = ""

   End Sub

   Private Sub ClearCLB(clb As CheckedListBox)

       For i As Integer = 0 To clb.Items.Count - 1

           clb.SetItemChecked(i, False)

       Next

       clb.ClearSelected()

   End Sub

End Class

Public Class OrderItem

   Public Name As String

   Public Price As Double

   Public Overrides Function ToString() As String

       Return Name

   End Function

End Class

You might be interested in
I need more friends plz talk with me
Bad White [126]

Answer:

hello hru??

Explanation:

<h2><em><u>PLEASE</u></em><em><u> MARK</u></em><em><u> ME</u></em><em><u> BRAINLIEST</u></em><em><u> AND</u></em><em><u> FOLLOW</u></em><em><u> ME</u></em><em><u> LOTS</u></em><em><u> OF</u></em><em><u> LOVE</u></em><em><u> FROM</u></em><em><u> MY</u></em><em><u> HEART</u></em><em><u> AND</u></em><em><u> SOUL</u></em><em><u> DARLING</u></em><em><u> TEJASWINI</u></em><em><u> SINHA</u></em><em><u> HERE</u></em><em><u> ❤️</u></em></h2>
6 0
3 years ago
Read 2 more answers
You csn access various sites on the www by using hyperlinks or by
Juliette [100K]
You can access sites else by ip address.
6 0
3 years ago
What steps can you take to secure your private information?.
pogonyaev

Answer:

Below:

Explanation:

1. Practice mail security. Use a public mailbox rather than your home mailbox to send bill payments and other mail containing sensitive information. Pick your mail up promptly and ask the post office to hold it while you’re away.

2. Guard your Social Security number. Don’t carry your Social Security card, military ID, Medicare, or other cards that have your Social Security number on them unless you are going somewhere where you will need them. Only provide your Social Security number when there is a legitimate need to do so.

3. Lock and shred. Keep your billing and banking statements and other personal records locked up and shred them when no longer needed.

4. Stop prescreened credit and insurance mailings. Call toll-free 1-888-567-8688 to get off mailing lists for credit and insurance offers. Your Social Security number will be required. This keeps thieves from intercepting and accepting the offers in your name and doesn’t affect your eligibility for credit or insurance.

5. Keep private information to yourself. Never respond to phone calls or emails asking to confirm your Social Security number or account numbers. Don’t leave PIN numbers, passwords or other personal information around for others to see.

6. Be safe online. Use anti-virus and anti-spyware software and a firewall on your computer and keep them updated. When you provide financial or other sensitive information online, the address should change from “http” to “https” or “shttp.” A symbol such as a lock that closes may also indicate that the transmission is secure.

7. Look at your bills and bank statements promptly. If you find any charges or debits that you never made, contact the bank or company immediately.

Hope it helps.......

It's Muska...  

6 0
3 years ago
Select all statements below that are TRUE for For...Next loops. A. It is used for a fixed number of iterations. B. It is used fo
sasho [114]

Answer:

A and C

Explanation:

The for next loop is used for a fixed number of iterations which is usually indicated in the syntax. It uses a counter that increments on each iteration. The loop terminates when the counter reaches the number of initially specified iterations. It is different from a while loop which depends on a specified condition evaluating to the Boolean 'true'.

7 0
3 years ago
Kumar was working on his term paper and had not saved his work before the battery died on his laptop. He panics because the pape
Nina [5.8K]

Answer:

By presuming Kumar was working on his term paper using Microsoft Word, he can be advised to restore the unsaved document using the Recover Unsaved Documents feature in Word.

Explanation:

Firstly, Kumar can click File tab in Word and click Manage Document. Kumar shall find the option Recover Unsaved Documents from a drop down list and he can click it as his option. At this stage, Kumar shall see the missing files in the dialog box. The recent loss file shall appear in the dialog box. Just open the desired document and save it.

4 0
4 years ago
Other questions:
  • Which statement is true regarding the Quick Access toolbar?
    11·2 answers
  • How is a cell named?
    9·1 answer
  • If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement.
    6·1 answer
  • How can i take out a random (double) number in between 5.0 to 15.0 in c++?
    7·1 answer
  • What is the voltage drop across R4 in the diagram shown above?
    13·1 answer
  • Choose a project with a relatively simple description (building a LAN, designing a web page, inventing a new communication devic
    6·1 answer
  • Which of these is the largest?<br> terabyte<br> exabyte<br> gigabyte<br> kilobyte<br> PLEASE HELP
    5·1 answer
  • Implement the Tollable interface. It provides one method, pay, that accepts an int (how many dollars to pay), and returns an int
    8·1 answer
  • What is the different sheets in excel
    15·1 answer
  • A row-level trigger requires use of the _____ keywords and is executed once for each row affected by the triggering statement.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!