Question

book = Microsoft Visual Basic 2015 RELOADED problem = Chapter 4, page 224, exercise #21 In...

book = Microsoft Visual Basic 2015 RELOADED
problem = Chapter 4, page 224, exercise #21

In Visual Studio 2015 I need to create an application that determines whether a customer is entitled to free shipping when ordering from JimJoe’s website. JimJoe’s does not charge shipping on any order when the customer belongs to the JimJoe’s Free Shipping Club. It also doesn’t charge shipping for any order totaling $100 or more. The application should display one of the following messages: “Your shipping is free!” or “You will be charged for shipping.”

Homework Answers

Answer #1

Editable code:

Public Class Form1
Dim customer(0 To 6) As String
Dim flag As Boolean


Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

flag = 0

customer(0) = "Felina"
customer(1) = "Bianca"
customer(2) = "Sonali"
customer(3) = "Jin"
customer(4) = "Paul"
customer(5) = "Carl"
customer(6) = "Cathrene"
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
For i = 0 To 6
If (customer(i).Equals(TextBox1.Text) Or TextBox2.Text >= 100) Then
flag = 1

End If


Next


If (flag) Then

MsgBox("Your shipping is free!")
Else
MsgBox("You will be charged for shipping.")
End If

flag = 0
End Sub
End Class

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Business Problem-Solving Case Walmart and Amazon Duke It Out for E-Commerce Supremacy Walmart is the world’s...
Business Problem-Solving Case Walmart and Amazon Duke It Out for E-Commerce Supremacy Walmart is the world’s largest and most successful retailer, with $487.5 billion in 2014 sales and nearly 11,000 stores worldwide, including more than 4,000 in the United States. Walmart has 2.2 million employees and ranks first on the Fortune 500 list of companies. Walmart had such a large and powerful selling machine that it really didn’t have any serious competitors—until now. Today, Walmart’s greatest threat is Amazon.com, often...
Case stydy - customers Businesses of all sizes are finding Facebook, Twitter, and other social media...
Case stydy - customers Businesses of all sizes are finding Facebook, Twitter, and other social media to be powerful tools for engaging customers, amplifying product messages, discovering trends and influencers, building brand awareness, and taking action on customer requests and recommendations. Half of all Twitter users recommend products in their tweets. About 1.6 billion people use Facebook, and more than 30 million businesses have active brand pages, enabling users to interact with the brand through blogs, comment pages, contests, and...
CASE STUDY - Customers Businesses of all sizes are finding Facebook, Twitter, and other social media...
CASE STUDY - Customers Businesses of all sizes are finding Facebook, Twitter, and other social media to be powerful tools for engaging customers, amplifying product messages, discovering trends and influencers, building brand awareness, and taking action on customer requests and recommendations. Half of all Twitter users recommend products in their tweets. About 1.6 billion people use Facebook, and more than 30 million businesses have active brand pages, enabling users to interact with the brand through blogs, comment pages, contests, and...
What are your top 3 take aways from this article? Technology is no longer just for...
What are your top 3 take aways from this article? Technology is no longer just for geeks. The internet has changed everything, including marketing. Be they small, medium or large, social media grants all companies an equal playing field on which to organically reach new customers. However, success will always ride on the marketing strategy employed. Obviously, larger companies have the advantage of bigger budgets and more resources. But that doesn’t mean social media for small business owners can’t compete...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT