1.7. LCD Shipment ¶
A company sells two types of electronic components; LCD screens and electronic ink displays. LCD screens weigh 63 grams and electronic ink displays weigh 30 grams.
Ask the user for the total number of screens of each type to ship as integers and calculate the total weight of the shipment. Print the results as the same type.
Sample I/O:
Input:
400
500
Output:
Total weight of LCD screens: 25200
Total weight of e ink displays: 15000
Input:
120
200
Output:
Total weight of LCD screens: 7560
Total weight of e ink displays: 6000
LCD_WEIGHT = 63
EINK_WEIGHT = 30
lcd_count = int(input("Enter the number of LCD screens: "))
eink_count = int(input("Enter the number of e ink displays: "))
total_lcd_weight = LCD_WEIGHT * lcd_count
total_eink_weight = EINK_WEIGHT * eink_count
print("Total weight of LCD screens: {}".format(total_lcd_weight))
print("Total weight of e ink displays: {}".format(total_eink_weight))