Preview

Java Code

Satisfactory Essays
Open Document
Open Document
511 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java Code
Public Class Form1 Dim sizepizza, crust, drinks, tops1, tops2, tops3, tops4, tops5, tops6, pricepizza, pricetops, pricedrink, totprice As Single Dim sp, crst, drnk, toping, toping1, toping2, toping3, toping4, toping5, toping6, dt As String

Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click ''Size If radSmall.Checked Then sizepizza = 100 ElseIf radMed.Checked Then sizepizza = 150 ElseIf radLarge.Checked Then sizepizza = 200 End If

''Crust If radThin.Checked Then crust = sizepizza ElseIf radThick.Checked Then crust = sizepizza + (sizepizza * 0.5) End If

pricepizza = crust txtPizza.Text = FormatNumber(pricepizza, 2)

''Drinks If radDrink.Checked Then drinks = 20 ElseIf radJuice.Checked Then drinks = 15 ElseIf radChoco.Checked Then drinks = 25 End If

pricedrink = drinks txtDrinks.Text = FormatNumber(pricedrink, 2)

If chkCheese.Checked = True Then tops1 = 10 Else tops1 = 0 End If If chkMush.Checked = True Then tops2 = 10 Else tops2 = 0 End If If chkOlv.Checked = True Then tops3 = 10 Else tops3 = 0 End If If chkOnion.Checked = True Then tops4 = 10 Else tops4 = 0 End If If chkPep.Checked = True Then tops5 = 10 Else tops5 = 0 End If If chkTom.Checked = True Then tops6 = 10 Else tops6 = 0 End If

pricetops = tops1 + tops2 + tops3 + tops4 + tops5 + tops6 txtTop.Text = FormatNumber(pricetops, 2)

You May Also Find These Documents Helpful

  • Better Essays

    1) You can call the module several times instead of writing it out each time.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Satisfactory Essays

    COMP230 Week 4

    • 458 Words
    • 4 Pages

    WScript.Echo "The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)…

    • 458 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    code program

    • 317 Words
    • 2 Pages

    (Compilation screenshot) - Insert here a screenshot of the result of compiling the above source code: NetBeans IDE 7.3.1 compiles but it did not go to the screen so I could see it, this is why I sent you a message yesterday to let you know this. But the program did run without any problems.…

    • 317 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Dictionary.com describes compassion as a feeling of deep sympathy and sorrow for another who is stricken by misfortune, accompanied by a strong desire to alleviate the suffering (2012). Bush describes compassion fatigue as a complex emotion that allows caregivers to hold and sustain themselves in emotional balance while holding patients’ despair in one hand and their hopefulness in the other (2009). Being able to identify the warning signs, know the physical, emotional and spiritual needs of you as a caregiver, and knowing different coping skills and ways to deal with the stressors of juggling life’s activities can help us as caregivers to keep ourselves in balance.…

    • 1208 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Java

    • 5076 Words
    • 21 Pages

    Explanation: B) Programs are classified as software to differentiate them from the mechanisms of the computer (hardware). Storage and the processor are two forms of hardware while input is the information that the program processes.…

    • 5076 Words
    • 21 Pages
    Good Essays
  • Good Essays

    Programming Homework

    • 366 Words
    • 2 Pages

    Write a program that would calculate and display the results for the multiplication table for values ranging from 1 to 100.…

    • 366 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Programming

    • 3038 Words
    • 13 Pages

    2. Each of the flowchart segments in Figure 3-35 is unstructured. Redraw each flowchart segment so that it does the same thing but is structured.…

    • 3038 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Java

    • 490 Words
    • 3 Pages

    Write a Java program to demonstrate using bitmaps and bitwise operators to sort and remove duplicates from a file of random phone numbers. Do not confuse the term bitmap used for compressing data into smaller spaces with the bitmap that has come to mean a graphic image.…

    • 490 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Programming fundamentals

    • 299 Words
    • 2 Pages

    Note. This assignment is cumulative and the information and results will be used in the following weeks.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    how to write code

    • 8482 Words
    • 34 Pages

    The website will be set up so that customers can view the wide range of…

    • 8482 Words
    • 34 Pages
    Powerful Essays
  • Good Essays

    Java

    • 827 Words
    • 4 Pages

    9. The withholding tax on a weekly salary (let us assume) is computed as follows: 14% of the difference between a person's gross pay and $13 times the number of dependents he or she claims. Read the values for the gross pay and the number of dependents; print the withholding tax.…

    • 827 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Please write answers on a separate sheet of paper. YOU MUST STAPLE ALL PAPERS TOGETHER AND HAVE YOUR NAME AND CLASS SECTION INFORMATION ON EACH SHEET OF PAPER.…

    • 398 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    To Working with VB Forms and Connect the Oracle 10g to Visual Studio 6.0 for Database Connectivity…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hw java

    • 416 Words
    • 2 Pages

    3. To make profit, a local store marks up the prices of its items by a certain percentage. Write a Java program that reads the original price of the item sold, the percentage of the marked-up price, and sales tax rate. The program then outputs the original price of the item, the mark-up percentage of the item, the store's selling price of the item, the sales tax rate, the sales tax, and the final price of the item. ( the final price of the item is the selling price plus the sales tax.)…

    • 416 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Core Java Vol Ii 8th Ed.

    • 21466 Words
    • 86 Pages

    Core Java Volume II-Advanced Features, Eighth Edition - Graphically Rich Book ....................... 1 Table of Contents ................................................................................................................................................................................. 2 Copyright ..................................................................................................................................................................................................... 5 Preface .......................................................................................................................................................................................................... 7 Acknowledgments ............................................................................................................................................................................. 10 Chapter 1. Streams and Files .................................................................................................................................................. 11 Streams ................................................................................................................................................................................................ 22 Text Input and Output .................................................................................................................................................................... 33 Reading and Writing Binary Data ............................................................................................................................................. 43 ZIP Archives ....................................................................................................................................................................................... 51 Object Streams and Serialization…

    • 21466 Words
    • 86 Pages
    Satisfactory Essays

Related Topics