Answers for "code"

Lua
14

code

A Code in Computer is what You write to Run Machines / Websites or Applications
Posted by: Guest on December-02-2020
-6

code

C O D E
Posted by: Guest on February-01-2021
-31

code

lol hi give me upvotes or else i will smash u
Posted by: Guest on March-11-2021
1

code

I wish I could just die

I love you world and my friends and family but I was useless.
I didnt want to be me I promise I tried changin whoI am but I found it impossible.

With love
me 0/
Posted by: Guest on June-08-2021
-4

code

its a secret
Posted by: Guest on December-03-2020
-1

code

this_name_is_the_best_variable_name_you_should_totally_use_it = "hello world"

print(this_name_is_the_best_variable_name_you_should_totally_use_it)
Posted by: Guest on January-15-2021
-3

code

Talk me code
Posted by: Guest on December-01-2020
0

code

number one lippy gloss you should come here today its the best website you will ever see!!!
Posted by: Guest on May-27-2021
-1

code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Restaurant_Bill_Calculator
{

    public partial class RestaurantBillCalculator : Form
    {
        public struct Orders
        {
            public string item;
            public double price;
        }

        const double TAX = 0.06; //6% tax
        Orders order = new Orders();
        static double subtotal = 0;
        static double totalTaxes = 0;
        static double total = 0;
        string finalBill = "FINAL BILL: \n";

        public RestaurantBillCalculator()
        {
            InitializeComponent();
        }

        private void getValues(string custOrder)
        {
            order.item = custOrder.Split('$')[0];
            order.price = Convert.ToDouble(custOrder.Split('$')[1];
            Output.Items.Add("Price: " + order.price);
            finalBill += "Ordered Item: " + order.item + "\nPrice: " + order.price.ToString("C2") + "\n";
            updateBill();
        }

        private void updateBill()
        {
            subtotal += order.price;
            total += order.price + (order.price * TAX);
            totalTaxes += order.price * TAX;
            {

            }

            Output.Items.Clear();
            Output.Items.AddRange(finalBill.Split('\n'));
            Output.Items.Add("Subtotal: " + subtotal.ToString("C2"));
            Output.Items.Add("Tax: " + totalTaxes.ToString("C2"));
            Output.Items.Add("Total: " + total.ToString("C2"));
        }

        private void RestaurantBillCalculator_Load(object sender, EventArgs e)
        {

        }

        private void dropdownSelection(object sender, EventArgs e)
        {
            if (sender == cmbdrinks)
                getValues(cmbdrinks.SelectedItem.ToString());
            else if (sender == cmbappetizers)
                getValues(cmbappetizers.SelectedItem.ToString());
            else if (sender == cmbmaincourses)
                getValues(cmbmaincourses.SelectedItem.ToString());
            else
                getValues(cmbdrinks.SelectedItem.ToString());
        }

        private void Output_TextChanged(object sender, EventArgs e)
        {
        }

        private void Clear_Click(object sender, EventArgs e)
        {
        }
    }
}
Posted by: Guest on August-23-2021
-3

code

~ c o d e ~
Posted by: Guest on April-12-2021

Browse Popular Code Answers by Language