Skip to content
FeatherEssaysFeatherEssays
FeatherEssays
Expert Essay and Academic Writing Services
1-343-433-433-444support@featheressays.com

our-guarantee

  • HOME
  • ABOUT US
  • OUR SERVICES
  • HOW IT WORKS
  • FAQ
  • TESTIMONIALS
  • ORDER A CUSTOM PAPER NOW
  • CONTACT US
  • HOME
  • ABOUT US
  • OUR SERVICES
  • HOW IT WORKS
  • FAQ
  • TESTIMONIALS
  • ORDER A CUSTOM PAPER NOW
  • CONTACT US
July 21, 2017UncategorizedBy classhelp24@gmail.com [email if you need fresh paper done]

Help. I can not figure out what I have done in the following code.? I have written this and everything is working fine except I am getting only zeros on the calculations.

There are no exceptions and I am debugging in Visual Studio.

I am going to pull my hair out.

Hello all

I am new to programing and I have written the following code in Visual Studio. Everything is working fine. except nothing is calculating. all I am getting is zero’s If anyone can help I would be very grateful.

view source print?

01 Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
02 ????????’?????????? This event handler when executed checks for entry into
03 ????????’?????????? in the Company Name text box.? It calculates the number of
04 ????????’?????????? of attendees and provides a discount if the previous attended
05 ????????’?????????? Yes box is selected.? It displays the Total Cost of Registration.
06 ??
07 ????????Dim decReturningCompany As Decimal = 0.15D
08 ????????Dim decOne As Decimal = 695D
09 ????????Dim decTwoFour As Decimal = 545D
10 ????????Dim decFiveEight As Decimal = 480D
11 ????????Dim deceightOrMore As Decimal = 385D
12 ????????Dim decTotalAttending As Decimal
13 ????????Dim decTotalCost As Decimal
14 ????????Dim decCostPerAttendee As Decimal
15 ????????Dim DecDiscount As Decimal
16 ??
17 ????????’?????????? Did User enter data in Company Name?
18 ????????If txtCompanyName.Text = “” Then MsgBox(“Please Provide Company Name”)
19 ??
20 ????????’?????????? Did user enter a numeric value?
21 ????????If IsNumeric(txtTotalActualAttending.Text) Then
22 ????????????decTotalAttending = Convert.ToDecimal(txtTotalActualAttending.Text)
23 ??
24 ????????????’?????? Is number of tickets greather than zero?
25 ????????????If decTotalAttending > 0 Then
26 ??
27 ????????????????’?? Calculate and display number of attendees and discount if?
28 ????????????????’?? previously attended.
29 ??
30 ????????????????If radOne.Checked Then
31 ????????????????????decOne = decCostPerAttendee
32 ????????????????ElseIf radTwoToFour.Checked Then
33 ????????????????????decTwoFour = decCostPerAttendee
34 ????????????????ElseIf radFiveToEight.Checked Then
35 ????????????????????decFiveEight = decCostPerAttendee
36 ????????????????ElseIf radEightOrMore.Checked Then
37 ????????????????????deceightOrMore = decCostPerAttendee
38 ????????????????ElseIf chbReturningCompany.Checked Then
39 ????????????????????decReturningCompany = DecDiscount
40 ????????????????End If
41 ??
42 ????????????????decTotalCost = (decTotalAttending * decCostPerAttendee) * (1 – DecDiscount)
43 ????????????????lblTotalCost.Text = decTotalCost.ToString(“C”)
44 ????????????Else
45 ??
46 ????????????????’?? Display error message if user entered a negative number
47 ????????????????MsgBox(“You Entered ” & decTotalAttending.ToString() & “. Please Enter a Positive Number of Reservations”)
48 ????????????End If
49 ??
50 ????????Else
51 ????????????’?????? Display error message if user entered a nonnumeric value
52 ????????????MsgBox(“Please Enter The Number of Reservations”)
53 ????????????txtTotalActualAttending.Text = “”
54 ????????????txtTotalActualAttending.Focus()
55 ????????End If
56 ??
57 ????????btnSubmit.Visible = True
58 ????????lblSubmitMessage.Visible = True
59 ??
60 ??
61 ????End Sub
62 EndClass

I need to calculate the number in the txtTotalActualAttending.text box by the selected radio button which has 4 possibilities.

Then I need to give a discount if the chbReturningCompany is selected.

This will be give me a total cost to be displayed in the lblTotalCost.Text (all I am getting now is $0.00.

I am sure it is something simple, but I have been trying for going on 2 days and I am at my wits end. Please and thank you

Request A Fresh Paper Done For You!You are guaranteed plagiarism free paper within 3-8 hrs
About the author

classhelp24@gmail.com [email if you need fresh paper done]

What are you looking for?
Visit
  • HOME
  • ABOUT US
  • OUR SERVICES
  • HOW IT WORKS
  • FAQ
  • TESTIMONIALS
  • ORDER A CUSTOM PAPER NOW
  • CONTACT US
Happy Client Quotes
  • When I made the decision to seek help from you guys, I didn’t know I was making a choice that would positively change my life forever. I am so much more confident with my ability to go to work and still be able to finish my research paper on time. The research you guys did for me was great and I was highly awarded for it. I mean, all along I was having difficulty managing my time. It was so hard to decide what I ought to give priority, work or research? Thanks to you guys I can now go to work without worrying too much about how great my research should be. I am still the same person, just to be sure, but with lot of skills and ability, courtesy of feather essay. I wish you guys were around 30 years ago when I started doing research while still in school. Great research paper, thanks feather essays.

    Scott Williams, Chicago
  • Feather essays is awesome, really. I can’t just say enough about how well their services are custom-made to meet students’ needs. I mean have been using other services from different websites with erratic degree of satisfaction, but this is way too perfect. I’m thankful their team understand all about essays requirement. I had an essay assignment due in two days so I had to seek for their help, at first I thought they wouldn’t be able to do it perfectly since it was the first time I was using their service. Well, I guess I was wrong. Another thing I also liked about feather essays is how they communicate with clients, so simple, they made me feel at ease even though I was under pressure. From my standpoint, their platform is very intuitive, and it’s pretty much dummy-proof. Thanks to you guys I passed, it’s really hard to recommend anything but feather essays for quality service.

    Joseph Levoh, Phoenix University
  • I mostly do silly mistakes in term papers and essays, and while going through the instructions I used to get stuck after a few steps. I must say I always get annoyed whenever this happened and I had started doubting if I will make it through college. I had lost confidence in myself, I felt uncomfortable and unmotivated in doing assignments. One day I was just going through the internet looking for help with my essay, I found out about feather essay. I was not really sure if they could help me, but considering my situation I decided to give it a try. To say the least, I’ve never regretted making the decision. They are amazing, they offer instant help on assignment and term papers, and whenever I come across any assignment with doubts, all I do is talk to them. They instantly help me with my essays and explain to me everything about it. Thanks to you guys, you help me save a lot of time and concentrate on other class work.

    Eleona Miller, New York City
  • I’d never sought out for help with my essays before, so I was a bit uncertain how to go about it. All this doubts disappeared as soon as I talked to feather essays. You guys took your time to comprehend what my short term and long term needs were, and perfectly lined up different options for me. Considering the fact that I needed a quick response and solution, the options you guys offered were so organized. I thought the steps involved could take up several weeks or days, but I was surprised when all it took was less than four hours. I guess as soon as the agreement was made, the worked started immediately. The way you delivered that essay showed me how top class service professional you guys are. For quick essays help, I recommend you guys. The best thing is that you understand when a client needs more time to think. Thanks to you guys.

    Laurette, Ohio
  • Quick Essay Help

    I’d never sought out for help with my essays before, so I was a bit uncertain how to go about it. All this doubts disappeared as soon as I talked to feather essays. You guys took your time to comprehend what my short term and long term needs were, and perfectly lined up different options for me. Considering the fact that I needed a quick response and solution, the options you guys offered were so organized. I thought the steps involved could take up several weeks or days, but I was surprised when all it took was less than four hours. I guess as soon as the agreement was made, the worked started immediately. The way you delivered that essay showed me how top class service professional you guys are. For quick essays help, I recommend you guys. The best thing is that you understand when a client needs more time to think. Thanks to you guys.

    Diana Ross, California
  • Unique service and quality work!!!Feather essays not only offer wonderful essays but also helped me pass with flying colors!! I could not also believe it. And what makes me love them more is how work is done instantly after ordering!!i will never worry about school essays anymore. Absolutely the best!

    Sasha Kelly, Cleveland
Recent Posts
  • Week 7 – Assignment: Integrate Waste Elimination Techniques into Training Development (10 Points)
    June 5, 2019
  • (Let professional handle your assignment. Get an A) Cloud Architectures Application
    June 25, 2018
  • (Let professional handle your assignment. Get an A) Cloud Architectures Application
    June 25, 2018
  • (Let professional handle your assignment. Get an A) Cloud Architectures Application
    June 25, 2018
  • (Let professional handle your assignment. Get an A) Cloud Architectures Application
    June 25, 2018
  • (Let professional handle your assignment. Get an A) Cloud Architectures Application
    June 25, 2018
  • HOME
  • ABOUT US
  • ORDER A CUSTOM PAPER NOW
  • FAQ
  • CONTACT US
  • TERMS & CONDITIONS
  • CHEAP AND AFFORDABLE PRICES
footer

Copyright © 2015 FeatherEssays