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
VashaNatasha [74]
3 years ago
10

This solution will use an item quantity and a state code to calculate the total price of an item. The solution will calculate th

e total cost of an item by multiplying the quantity ordered by one of two prices. For quantities less than 50 each item will cost $2.25. For quantities greater than or equal to 50, each item will cost $1.50. Should the state be Connecticut or Massachusetts, an extra $20 will be added to the total cost of the item.
Please answer!!!
Computers and Technology
1 answer:
jeka57 [31]3 years ago
8 0

Answer:

Create one label and one textbox, and name them quatity, both of them. Now add another label, and name it Price. And add a button, and name it calcprice. Also add state textbox for state. Add a textbox and name it state

Now Double click calcprice button in design mode, and add in calcprice_click, code given below:

If Convert.ToInt32(quantity.Text) <50 and (state.Text != Connecticut or state.Text !=Massachusetts) Then  

   Price= Convert.ToInt32(quantity.Text) x 2.25

If Convert.ToInt32(quantity.Text) <50 and (state.Text == Connecticut or state.Text ==Massachusetts) Then  

   Price.Text= Convert.ToInt32(quantity.Text) x 2.25 +20

ElseIf Convert.ToInt32(quantity.Text) >=50  and (state.Text != Connecticut or state.Text !=Massachusetts) Then  

 Price.Text= Convert.ToInt32(quantity.Text) x 1.50

 Else

   Price.Text= Convert.ToInt32(quantity.Text) x 1.5 +20

 End If

Please add this code and it should work fine.

Explanation:

Please check the answer section.

You might be interested in
The different generation of computer explain in breif?​
Firlakuza [10]

You can download answer here

tinyurl.com/wpazsebu

7 0
3 years ago
Read 2 more answers
Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither.
astraxan [27]

Answer:

uuuuu

Explanation:

8 0
2 years ago
Read 2 more answers
Is a book considered technology?
kumpel [21]
Yes, "technology" doesn't have to be all about computers or cell phones.. Technology is anything that is a new advance in knowledge and books were once a great advance in that field.
7 0
4 years ago
Read 2 more answers
What Are the Components of a Web Address? *​
ipn [44]

Answer:

What Are the Components of a Web Address?

1.Protocol. The first component of a web address is the protocol, which is also known as the scheme. ...

2.Domain Name. The domain name part of the web address is the unique identifier for the website on the internet. ...

3.Domain Extension. ...

4.Path & Filename.

5 0
3 years ago
Read 2 more answers
I NEED HELP SOMEONE HELP ME PLEASE
kirill115 [55]
1. non photorealistic rendering
2. siftables
3. spherical audio
4. blu ray
7 0
3 years ago
Other questions:
  • Distinguish the functional requirements an engineer would have to specify for a taxi dispatch system.
    8·1 answer
  • What operator is used to create a validation rule? A. – B. / C. &lt; or &gt; D. +
    12·1 answer
  • How to send an email
    7·2 answers
  • Are the actions legal or illegal?
    13·1 answer
  • What is a DreamScape?<br> Explain <br> and give example (if you want)
    10·1 answer
  • 2. Given the following list, write a snippet of code that would print the individual elements of the list using the indexes of t
    13·1 answer
  • Can someone please give me two (2) thesis statement for this question?
    5·1 answer
  • List the difference between GIGO and bug ​
    15·1 answer
  • What are the 5 font/typography families
    14·1 answer
  • The field that uses technology to manipulate and use information to improve healthcare is known as:_______
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!