Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Module Module1
  2.  
  3.     Sub Main()
  4.         'Declare variables
  5.        Dim monthlySales As Double
  6.         Dim monthlyGoal As Double
  7.  
  8.         'Get inputs
  9.        Console.WriteLine("Enter the sales goal of the month: ")
  10.         monthlyGoal = (Console.ReadLine())
  11.         Console.WriteLine("Enter your monthly sales: ")
  12.         monthlySales = (Console.ReadLine())
  13.  
  14.         If ( monthlySales = monthlyGoal ) Then
  15.             Console.WriteLine("You earned a $5000 bonus!")
  16.         Else If ( monthlySales > monthlyGoal ) And (monthlyGoal < monthlyGoal * 1.05) Then
  17.                 Console.WriteLine("You get a $5000 bonus plus a sponsored lunch.")
  18.         Else If ( monthlySales >= monthlyGoal * 1.05 ) And (monthlyGoal < monthlyGoal * 1.1) Then
  19.                 Console.WriteLine("You get a $5000 bonus plus a ticket to the Macomb Center for the Performing Arts.")
  20.         Else If ( monthlySales >= monthlyGoal * 1.1 And monthlyGoal ) < ( monthlyGoal * 1.15 ) Then
  21.                 Console.WriteLine("You get a $5000 bonus plus a ticket to see the Detroit Red Wings.")
  22.         Else If ( monthlySales >= monthlyGoal * 1.15 ) And ( monthlyGoal < monthlyGoal * 1.2 ) Then
  23.                 Console.WriteLine("You get $7500.")
  24.         Else If ( monthlySales >= monthlyGoal * 1.2 ) And ( monthlyGoal < monthlyGoal * 1.25 ) Then
  25.                 Console.WriteLine("You get $7500 and the afternoon off.")
  26.         Else If ( monthlySales >= monthlyGoal * 1.25 ) Then
  27.                 Console.WriteLine("You get $7500 plus a day off!")
  28.         Else
  29.                 Console.WriteLine("You get nothing!")
  30.     End Sub
Add Comment
Please, Sign In to add comment