Write A Program That Calculates A Bill For Pizza Shop?
Oct 12, 2009
I am trying to write a program that compute the bill for a pizza shop and I cannot figure out what I am doing wrong when I build it there are no errors but when I debug it it will not run [code]...
got a pizza shop and the assingment is to create a application which alows the user to take a customer's order... I have a combo box filled with all of the items you can order (data from an access file)... and I need to have it so that when you select an item, it shows up in a text box below... I keep getting an error message saying you can't convert datarowview to string..
here is some
Private Sub TakeOrders_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'PROJECT4DataSet.Items' table. You can move, or remove it, as needed. Me.ItemsTableAdapter.Fill(Me.PROJECT4DataSet.Items) End Sub
This is my project for class and this is what i have so far but my teacher gave me no credit. What am i doing wrong? i tried rearranging it but no success.
A fast-food vendor sells pizza slices at $1.25 each, fries at $1.00, and soft drinks at $0.75. Write a program to computer a customers bill. The program should use 4 subprocedures that do the following:
1. read in the amount of each item ordered
2. calculate the total cost
3. display an itemized bill
4. read in the users full name from a textbox, and display a sentence, addressing the user by first name only and in upper case characters, informing the user of their bill
Here is an example itemized bill: Item Quantity Price Pizza slices 3 $1.25 Fries 4 $1 Soft drinks 5 $0.75 Total $11.50
Example sentence for point 4: if the user name was entered as John Smith, you would display the sentence JOHN, your bill is $11.50.
MY
Public Class Form1
Sub pizza(ByVal pizzap As Double, ByVal pizzanum As Double) lstoutput.Items.Add("Pizza Slices" & pizzap & "and" & pizzanum & "is" & (pizzap * pizzanum) & ".")
I'm having trouble figuring how to code the calculations for a Pocket PC application that calculates the cost of a cell phone bill. From a Pocket PC the user should enter the number of minutes used during the past month, in order to calculate the cost of the cell phone bill. The plan allows 300 minutes for $29.95 per month. For each minute over 300 the cost is $0.17 cents per minute. Tax and Fees are $4.85 a month.
1. User enters the number of minutes used during the past month.
2. Based on plan rate of 300 minutes for $29.95 and 17 cents for each minute over 300 calculate the cost of the bill including the fixed cost of $4.85.
3. The user must be able to initiate the calculation and display the individual charges and the total cost of the cell phone bill.
4. The user should be able to clear the number of cell phone minutes, the individual charges and the bill total
If negative number is enterd for the cell phone minutes, the user should be advised and asked for a valid entry If non numeric value entered for the cell phone minutes, or if left blank the user should be advised and asked for a valid entry.Application is deployed on the Pocket PC emulator built in VS 2008
Enter # of Minutes ________ (user enters) Regular Minutes Charge ___ (29.95)
I have to write a program that calculates amount due and provides a summary or rentals.Members get 10% off. The program is to calculate the Total rental price then how much the discount is and then the total amount due. Inside a Group box called summary I need the program to display the number of customers (captured each time a member number is enentered) and the total rental income after the discount. I have the follwoing Text Boxes:
I need to write a program that calculates and displays the depreciation of a businesses assets.I need the program to read a comma-delimited input file containing the names of multiple assets, their purchase prices, the years of their purchase and the number of years that the assets are expected to be useful.I need to use this straight line depreciation formula- (purchase price / number of years of usefulness) * (current year �purchase year)
I just need help with my Pizza Program in calculations. It keeps on adding on top of the original calculations. I did try to set the variables to 0, but that really didn't work out since the price that is shown turns out to be 0.
I'm trying to make a program that calculates the x's for you using the abc formula. Now i have made it, it gives a value of "NaN" as output. I don't know where i went wrong, so I hoped one of you could help me with it.
VISUAL BASIC 2008. Program Description: Create a program that calculates the amount of quarters, dimes, nickels, and pennies are needed from an amount of change (entered in pennies). The program should use the largest coins possible (for example, fifty cents should use two quarters, not five dimes, fifty pennies, etc.)
I don't want the code already written out, I need somebody to walk me through making a code. Also, this is my first class dealing with computer programming so all we've learned so far is declaring variables and how to label objects, the simple stuff. I'm at a loss at how to start because a quarter is worth 25 but the program is supposed to show how many quarters once a user enters the amount in cents.
I am building a program that calculates the number of books by points.Ex: 1-3 books read are worth 10 points, 4-6 are worth 15 and > 6 are worth 20. The issue I'm having is getting it to calculate the the first 3 books, the 2nd 3 books and then the > 6.Ex: User inputs 8 books read. It should display 115 in the label.
1. I'm using an If statement (should I be) 2. Could I use a decimal for the > 6? Ex: intTotalNumberOfBooks = (intTotalNumberOfBooks * intFirst3Books) *#D
I know this is something simple and it's out of VB 101, but it is my very first programming class and my professor uses a copy paste method during class.
Okay, that's not a big deal... I'll implement FileStreams and read bytes performing operations on them. The problem is that if I do this, the program will hang until the hashes have all been calculated. I want the program to show the hashes calculated so far and a progress bar. I know I need to implement this using threads and interrupts, but how, P.S. Any example code, simply for showing the progress of any operation, and involving a thread,
Write a complete Visual Basic program to do the following: Joe's Pizza Palace needs an application to calculate the number of slicesa pizza of any size can be divided into.
The application should do the following: Allow the user to enter the diameter of the pizza, in inches. Calculate the number of slices that can be cut from a pizza that size. Display a message that indicates the number of slices. To calculate the number of slices that can be cut from the pizza, you must know these facts: Each slice should have an area of 14.125 inches. To calculate the number of slices, divide the area of the pizza by 14.125. The area of the pizza is calculated with the formula: Area = π r2
Note: The π is pi which is equal to 3.14159.The r is the radius of the pizza. Divide the diameter by 2 to get the radius.
Form: The application should be done form-based. You may design your own form. It must have the following: a label indicating that it is Joe's Pizza Palace a field with label to enter the size (diameter) of the pizza a field with label to display the number of slices buttons to calculate the number of slices and to exit the application
Output: Use the following test data to determine if the application is calculating properly: Diameter of Pizza Number of Slices 22 inches 27 15 inches 13 12 inches 8
Requirements: Name the project Pizza. Be sure to include your name included in a comment No credit is given for a program that will not execute. All rules of academic integrity should be applied as stated in the syllabus. Submit the zipped project into Moodle.
I have errors saying "With Held " events
WHAT IS WRONG WITH what I HAVE
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button3.Click ' End the application End End Sub
I'm creating a program for my workplace which stores hours worked, calculates pay and all that stuff.Problem being, the database will be accessed through the network and i want to be able to select the database from an openfile dialog on first use to locate the database. On every program start up it then would have the database location stored within the program itself.
I'm trying to create a program which will calculate the Fibonacci Sequence which calculates the numbers correctly however, there are a few problems.
1. When using a Do While...Loop the program becomes non responsive.
2. Kind of dealing with the program becoming non responsive; I am unable to stop the process by forcing the sub to Exit.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Operation.Text = "Calculating...." EStop = False
I am making a program which calculates the cost of (Let's say) Spent Electric Energy for a number of days,defined by the user..I have 2 Date Time Picker and x (The average energy spent in a day) where x must be an integer and it is defined by the user x * (DateTimePicker2.Value - DateTime Picker1.Value) = y (The value to be paid for a number of days)
I am trying to build a program that calculates the minutes worked times pay rate equals amount of weekly pay this is what I got but it doesn't calculate
I want to ask for the steps that i have to do and a code to use for a e-shop using paypal. is there a standard code that it is used for these transactions?
I am creating a sound shop application. The user will first select an album from album list box and then from there a list of songs from that specific artist will end up in the song list box. The user will then be able to add that song to the shopping cart. After confirming the purchase, the songs that were bought will appear in the play list box so the user can listen. I am confused on how to get this to work properly.
I want to make a coffee shop billing system ..but don't know how to give a start to it ..I have searched and searched but no responses any where so far . I have not seen any billing softwares so don't know what all buttons,menus and database need to be created for the same ...I'm using Microsoft Visual Studio 2008 with frame work 3.5 and would like to use SQL database for connecting...
Anyway I am writing a program to allow the user to enter:
-size of pizza which is a combo box (CmbSize) -type (thin crust or standard) of pizza which is a combo box (CmbType) -pizza choice (spicy chicken, maryland etc) using a checked listed box (ChkdListChoice)
The problem I have that will probably be simple to a lot of you who are using this language frequently is that I simply want keep a running subtotal of the users choice. So for example the user chooses 8" Spicy Chicken - 3.50, then they press the BtnAddToOrder button to output it to the Textbox (TxtPizzaChoi). When the user adds the next pizza I simply want the previous pizza price to be added to this one giving a new subtotal. I have not made the price change if the user changes the size to 12" spicy chicken, the price is still 3.50, simply because I think this could make it more difficult to me and I don't have lots of time to work on this. My declarations are not all in use and i may not need them by the way.
Heres the code:
Public Class PizzaChoices Dim price As Decimal Dim topping As Decimal
i want to make an atm which is used in tailoring shop and withdrawing the suits(dress) the we have given to tailor... the tailor has to issue the card with the measurements of our dress next time we want to make that dress and directly go to the atm point...
i cant get this to work,i am trying to make an Combobox when i selected a sort pizza it shall tell me the price with a messagebox. iam using accdb database who i connected with datasource
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged If ComboBox1.SelectedValue = "" Then
[code]....
i get an error that says there is no value for execute?and strange, if i post a value insteed of combobox.selected value, iam also not getting some value?
i'm new with visual basic and i need some help to finish this program.This are the instructions and the code that i have is below.You need to develop an application with an accessible user interface for Pizza Station to take pizza orders. The interface should allow the user to enter the following information:
Customer name Size of the pizza Toppings desired
When the user clicks the Order button, a summary of the order and its cost should be displayed in a message box and the controls should be cleared to make the form ready for the next order.
One is a program where you can select a product and select how many of them you want. Then the total price wil be displayedin a label. And the list of selected products will be saved in a .txt file.
The second program is an Edit program. The user can edit his selected products. Here he can change the total of a product.So if he had selected 1, he can change it to three or something. When the user clicks the button Save. The changes will besaved in the same .txt file and the total price will also be changed and displayed in program one.
Program one is compleet.Program two has problems and here i need your help:- the user can't make a change in the numbers, seems that the textbox is read-only or something. How to solve?- Then when i click save, the changed must be saved in the .txt ( i can't test this yet because no changes can't be made)- the total new price must be showed in program 1 (i think i programmed this well, but can you take a look)
how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.