dim totalmulti as decimal
Dim UserChoice As Integer
Console.WriteLine("MENU OF OPTIONS")
Console.WriteLine("Task 1")
Console.WriteLine("Task 2")
Console.WriteLine("Task 3")
Console.WriteLine("Enter number 1 - 3")
UserChoice = Console.ReadLine()
Loop Until UserChoice >= 1 And UserChoice <= 3
Dim PhoneName(6) as string
Dim PhoneItemCode(6) as string
Dim PhonePrice(6) as decimal
Dim TabletName(4) as string
Dim TabletItemCode(4) as string
dim TabletDescription(4) as string
Dim tabletPrice(4) as decimal
dim SimCardName(2) as string
Dim SimCardCode(2) as string
Dim SimCardPrice(2) as decimal
dim CaseName(2) as String
dim CaseCode(2) as string
dim CasePrice(2) as Decimal
dim CaseChoice as integer
dim ChargerName(2) as String
dim ChargerCode(2) as string
dim ChargerPrice(2) as Decimal
dim ChargerChoice as Char
dim simcardchoice as integer
PhoneName(2) = "Clam Shell"
PhoneName(3) = "RoboPhone – 5-inch screen and 64GB memory"
PhoneName(4) = "RoboPhone – 6-inch screen and 256GB memory"
PhoneName(5) = "Y-Phone Standard – 6-inch screen and 64GB memory"
PhoneName(6) = "Y-Phone Deluxe – 6-inch screen and 256GB memory"
PhoneItemCode(1) = "BPCM"
PhoneItemCode(2) = "BPSH"
PhoneItemCode(3) = "RPSS"
PhoneItemCode(4) = "RPLL"
PhoneItemCode(5) = "YPLS"
PhoneItemCode(6) = "YPLL"
TabletName(1) = "RoboTab – 8-inch screen and 64GB memory"
TabletName(2) = "RoboTab – 10-inch screen and 128GB memory"
TabletName(3) = "Y-Tab Standard – 10-inch screen and 128GB memory"
TabletName(4) = "Y-Tab Deluxe – 10-inch screen and 256GB memory"
TabletItemCode(1) = "RTMS"
TabletItemCode(2) = "RTLM"
TabletItemCode(3) = "YTLM"
TabletItemCode(4) = "YTLL"
SimCardName(1) = "SIM Free (no SIM card purchased)"
SimCardName(2) = "Pay As You Go (SIM card purchased"
Dim PhoneOrTablet as char
Dim phoneChoice as integer
dim Tabletchoice as integer
Console.WriteLine("Are you looking for a Phone Or Tablet")
Console.Writeline("If you want a Tablet enter T")
Console.writeline("If you want a Phone enter P")
PhoneOrTablet = Console.readline()
loop Until PhoneOrTablet = "P" or PhoneOrTablet = "T"
Console.writeline( i & " " & PhoneName(i) & " " & PhoneItemCode(i) & " $" & PhonePrice(i) )
Else if PhoneOrTablet = "T"
Console.writeline( i & " " & TabletName(i) & " " & TabletItemCode(i) & " $" & TabletPrice(i) )
Console.writeline("Please enter the Number of the Phone you want")
PhoneChoice = Console.readline()
Console.writeline("Please enter the Number of the Tablet you want")
TabletChoice = Console.readline()
Console.writeline(i & " " & SimCardName(i) & " " & SimCardCode(i) & " $" & SimCardPrice(i))
SimCardChoice = console.readline
console.writeline(i & " " & CaseName(i) & " " & CaseCode(i) & " $" & CasePrice(i))
Console.Writeline("Please choose a Case")
CaseChoice = console.readline
console.writeline(i & " " & ChargerName(i) & " " & ChargerCode(i) & " $" & ChargerPrice(i))
Console.Writeline("Please choose a Charger, Either 1,2,(B)oth or (N)one")
ChargerChoice = console.readline
Console.writeline( PhoneChoice & " " & PhoneName(PhoneChoice) & " " & PhoneItemCode(PhoneChoice) & " $" & PhonePrice(PhoneChoice) )
Console.writeline(SimCardChoice & " " & SimCardName(SimCardChoice) & " " & SimCardCode(SimCardChoice) & " $" & SimCardPrice(SimCardChoice))
console.writeline(CaseChoice & " " & CaseName(CaseChoice) & " " & CaseCode(CaseChoice) & " $" & CasePrice(CaseChoice))
Total = Total + PhonePrice(PhoneChoice)
Total = total + SimCardPrice(SimCardChoice)
Total = Total + CasePrice(CaseChoice)
Select Case Chargerchoice
console.writeline(1 & " " & ChargerName(1) & " " & ChargerCode(1) & " $" & ChargerPrice(1))
Total = Total + ChargerPrice(1)
console.writeline(2 & " " & ChargerName(2) & " " & ChargerCode(2) & " $" & ChargerPrice(2))
Total = Total + ChargerPrice(2)
console.writeline(1 & " " & ChargerName(1) & " " & ChargerCode(1) & " $" & ChargerPrice(1))
console.writeline(2 & " " & ChargerName(2) & " " & ChargerCode(2) & " $" & ChargerPrice(2))
Total = Total + ChargerPrice(1)
Total = Total + ChargerPrice(2)
Console.writeline("No charger's selected")
Console.writeline( PhoneChoice & " " & PhoneName(TabletChoice) & " " & PhoneItemCode(TabletChoice) & " $" & PhonePrice(TabletChoice) )
console.writeline(CaseChoice & " " & CaseName(CaseChoice) & " " & CaseCode(CaseChoice) & " $" & CasePrice(CaseChoice))
Total = Total + PhonePrice(TabletChoice)
Total = Total + CasePrice(CaseChoice)
Select Case Chargerchoice
console.writeline(1 & " " & ChargerName(1) & " " & ChargerCode(1) & " $" & ChargerPrice(1))
Total = Total + ChargerPrice(1)
console.writeline(2 & " " & ChargerName(2) & " " & ChargerCode(2) & " $" & ChargerPrice(2))
Total = Total + ChargerPrice(2)
console.writeline(1 & " " & ChargerName(1) & " " & ChargerCode(1) & " $" & ChargerPrice(1))
console.writeline(2 & " " & ChargerName(2) & " " & ChargerCode(2) & " $" & ChargerPrice(2))
Total = Total + ChargerPrice(1)
Total = Total + ChargerPrice(2)
Console.writeline("No charger's selected")
Console.writeline("This is your total " & Total)
Console.writeline("Is this correct, (Y)es Or (N)o")
correct = console.readline
Loop until Correct = "Y" or Correct = "N"
Console.writeline("Any More devicies (Y/N)")
AnyMore = Console.readline()
Console.writeline("Any More devicies (Y/N)")
AnyMore = Console.readline()
DISCOUNT = DISCOUNT * (counter / 10)
totalmulti = total + totalmulti
Console.writeline(Totalmulti)