Here is a code in python 3:
country = input("Enter country? ") if country not in ['USA','Canada']: print("Postage only available for USA and Canada") exit(1) size ='' cost = 0.0 choice = input("Enter 'y' for standard size: ") weight = int(input("Enter weight? ")) if weight > 500: print("Weight cannot be greater than 500gms.") exit(1) if choice is 'y': size = 'standard' if weight > 50: size = 'other' print("Since weight is above 50gms, the size has been changed to other") else: size = 'other' if country == 'Canada': if weight <= 30: cost = .85 elif weight <= 50: cost = 1.2 elif weight <= 100: cost = 1.8 elif weight <= 200: cost = 2.95 elif weight <= 300: cost = 4.1 elif weight <= 400: cost = 4.7 else: cost = 5.05 if country == 'USA': if weight <= 30: cost = 1.2 elif weight <= 50: cost = 1.8 elif weight <= 100: cost = 2.95 elif weight <= 200: cost = 5.15 else: cost = 10.3 print("Postage Rate: %.2f" %cost)
Sample Output:
Here are the actual Canada Post postage rates for standard and non-standard or oversize envelopes to...
SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the company's new line of single-serve coffee pods or to await results from the product's launch in the United States. Key strategic decisions include choosing the target market to focus on and determining the value proposition to emphasize. Important questions are also raised in regard to how the new product should be branded, the flavors to offer, whether Kraft should use traditional distribution channels or...
The following guidelines outline the basic template for a robot vacuum cleaner game. The game must be implemented in c programming language. It mimics a robotic vacuum cleaner. The code must only use the following libraries: #include <math.h> #include <stdlib.h> #include <string.h> #include <limits.h> and any .graphics and .timers libraries. The guidelines are outlined as follows: Terminal Set-up: you may assume that the terminal will be quite large, for example, on the order of 150×50, or more. Status Display: The...
The following guidelines outline the basic template for a robot vacuum cleaner game. The game must be implemented in c programming language. It mimics a robotic vacuum cleaner. The code must only use the following libraries: #include <math.h> #include <stdlib.h> #include <string.h> #include <limits.h> and any .graphics and .timers libraries. The guidelines are outlined as follows: Terminal Set-up: you may assume that the terminal will be quite large, for example, on the order of 150×50, or more. Status Display: The...
10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...