2023-09-17 06:59:17 +00:00
|
|
|
# Copyright 2022, Rayyan Hodges, TAFE NSW
|
|
|
|
# rayyan.hodges@studytafensw.edu.au
|
|
|
|
|
2023-09-17 06:54:11 +00:00
|
|
|
# Creating variables to hold the user's invoice number, sales amount and sales tax.
|
|
|
|
sales_amount=int(input("Please input the sales amount: "))
|
|
|
|
invoice_number=int(input("Please enter your invoice number."))
|
|
|
|
|
|
|
|
# Making sure invoice number is within 1,000 and 8,000
|
|
|
|
if invoice_number<1000 or invoice_number>8000:
|
|
|
|
|
|
|
|
else:
|
|
|
|
print("Invalid invoice number, please try again.")
|
|
|
|
breakpoint()
|
|
|
|
|
|
|
|
# Making sure sales amount is non-negative.
|
|
|
|
if sales_amount >= -1:
|
|
|
|
continue
|
|
|
|
else:
|
|
|
|
print("Invalid sales amount, please try again.")
|