#1-1###################################################
""""1. Print a box like the one below.
*******************
*******************
*******************
*******************"""

##for rows in range(4):
##    for columns in range(19):
##        print("*", end="")
##    print()

#1-2####################################################
"""Print a box like the one below.
*******************
*                 *
*                 *
*******************
"""

##for rows in range(4):
##    for columns in range(19):
##        if (rows == 0 or rows == 3):
##            print("*",end="")
##        else:
##            if (columns==0):
##                print("*",end="")
##            if (columns==18):
##                print("                 *",end="")    
##    print()

#1-3######################################################
""" Print a triangle like the one below.
*
**
***
****    """

##for rows in range (5):
##    for colums in range(rows):
##        print("*", end="")
##    print()

#1-4######################################################


""" Write a program that computes and prints the result of
512-282/47.48+5. It is roughly .1017. """

##a = 512
##b = 282
##c = 47.48
##d = 5
##solve = ((a -b)/(c + d))
##print(solve)

#1-5######################################################
"""Ask the user to enter a number. Print out the square of
the number, but use the sep optional argument to print it
out in a full sentence that ends in a period. Sample
output is shown below."""

##num = eval(input("Enter a Number: "))
##print("The square of " + str(num) + " is " ,num*num )

#1-6######################################################
""""Ask the user to enter a number x. Use the sep optional
argument to print out x, 2x, 3x, 4x, and 5x, each
separated by three dashes, like below."""

##num = eval(input("Enter a number: "))
##print(num ,2*num , 3*num ,4*num , 5*num , sep='---')

#1-7######################################################
"""Write a program that asks the user for a weight in
kilograms and converts it to pounds. There are 2.2 pounds
in a kilogram."""

##kg = eval(input("Enter a your Weight in Kg: "))
##print("Your weight in pounds is",kg * 2.2)

#1-8######################################################
"""Write a program that asks the user to enter three
numbers (use three separate input statements).  Create
variables called total and average that hold the sum and
average of the three numbers and print out the values of
total and average."""

###num1 ,num2 ,num3 =eval(input("Enter 3 Numbers: "))
##num1 = eval(input("Enter number 1: "))
##num2 = eval(input("Enter number 2: "))
##num3 = eval(input("Enter number 3: "))            
##total = num1 + num2 + num3
##average = total/3
##print("Total number is ",total)
##print("Average number is", average)

#1-9######################################################
"""A lot of cell phones have tip calculators. Write one.
Ask the user for the price of the meal and the percent tip
they want to leave. Then print both the tip amount and the
total bill with the tip included."""

##meal_price = eval(input("Enter the price of your meal: $"))
##tip_percent = eval(input("Enter the tip Percentage: "))
##print("The tip amount is: $"+str(meal_price*tip_percent))
##print("Total bill is $"+str(meal_price+meal_price*tip_percent))


