It's neat organized and ready to find when needed
Answer:
- policy_num = int(input("Enter policy number: "))
- lastName = input("Enter last name: ")
- firstName = input("Enter first name: ")
- premiumDate = input("Enter premius due date (mm/dd/yyyy): ")
- numAcc = int(input("Enter number of driver accident in the past three years: "))
-
- if(policy_num <1000 or policy_num > 9999):
- policy_num = 0
-
- dateComp = premiumDate.split("/")
- month = int(dateComp[0])
- day = int(dateComp[1])
- year = int(dateComp[2])
-
- if(month < 1 or month > 12):
- month = 0
- day = 0
- year = 0
- else:
- if(month == 1 or month == 3 or month == 5 or month == 7 or month == 8 or month == 10 or month == 12):
- if(day < 1 or day > 31):
- month = 0
- day = 0
- year = 0
- elif(month == 4 or month == 6 or month == 9 or month == 11):
- if(day <1 or day > 30):
- month = 0
- day = 0
- year = 0
- elif(month == 2):
- if(day < 1 or day > 29):
- month = 0
- day = 0
- year = 0
-
- print("Policy number: " + str(policy_num))
- print("Last name: " + lastName)
- print("First name: " + firstName)
- print("Premium Date: " + str(month) + "/" + str(day) + "/" + str(year))
- print("Number of driver accidentin the last three years: " + str(numAcc))
Explanation:
The solution code is written in Python 3.
Firstly use input function to prompt user to enter all the necessary insurance policy data (Line 1 - 5).
Next create an if statement to validate the input policy number. If the policy number is not within the range of 1000 - 9999, set the policy number to zero (Line 7 -8).
Next, split the input premium date into month, day and year (Line 10 -13). It is followed by checking the month if it is between 1 - 12. If not, set the month, day and year to zero (Line 15 - 18). Otherwise the program will proceed to validate the month based on the maximum and minimum number of days for a particular month (Line 20 - 34). If the day is out of range, set month, day and year to zero.
Lastly, use print function to display the policy data (Line 36 - 40).
Answer:
my_fee = ebay_fee(15.23)
Explanation:
Functions are sections of a program that provide a particular outlined procedure, we call a function by writing its name followed by a pair of parenthesis, the function may be designed in a way that it accepts arguments while been called, Like the case of the ebay_fee(15.23). the number within the pair of parenthesis id the argument, and it is the data that the functions will process and return a value afterwards.
Answer:
ADMX files which is in XML file format.
Explanation:
Regarding Group Policy in Windows Server 2008 and Windows Vista, Microsoft used the token-based Administrative Template (ADM) files. Microsoft replaced ADM files with ADMX files (XML-based file format), and it is used in Windows Server 2012 and Windows Server 2012 R2.
ADMX files are registry-based policy settings used for defining the display of the Administrative Template (ADM) policy settings in the GPO Editor in an XML-based structure.
Answer:
B. Agriculture, Food, and Natural Resources.
Explanation:
The Agriculture, Food and Natural Resources career cluster is for those students who enjoy the outdoors and love working with both animals and plants. The cluster prepares most students for careers in agriculture products and services. This cluster includes a wide range of job occupations such as livestock farmer, florist, and many more. The animal systems career pathway will specifically deal with the business side of livestock. This career pathway will further include students who would want to work as animal breeders, farm workers, animal scientists, or nonfarm animal caretakers.