given a number of days(N) as input,write a program to convrt N to years(Y),weeks(W),and days(D).
create a python program
Choices:
a. Calculator
b. Odd or Even
c. Positive or Negative Number Enter your choice: a Enter first number: 10 Enter second number: 5 The sum of 10 and 5 is 15 The difference of 10 and 5 is 5 The product of 10 and 5 is 50 The quotient of 10 and 5 is 2
2. Write your own unique Python program that has a runtime error. Do not copy the program from your textbook or the Internet. Provide the following.
The code of your program.
Output demonstrating the runtime error, including the error message.
An explanation of the error message.
An explanation of how to fix the error.
Find latitude and longitude of first 20 countries with a population greater than or equal to the population limit given below. Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 300
Consider a square matrix , a size n*n and a integer , x . Calculate the row number , r and column , c or x in a. If the sum of R and C is an even number, find the sum s of all even numbers in the matrix and if the sum of r and c is odd , then find the sum s of all odd numbers in the matrix.
Sample input 1
5
Sample output 1
5 5 5 5 5 5 5 5 5
5 4 4 4 4 4 4 4 5
5 4 3 3 3 3 3 4 5
5 4 3 2 2 2 3 4 5
5 4 3 2 1 2 3 4 5
5 4 3 2 2 2 3 4 5
5 4 3 3 3 3 3 4 5
5 4 4 4 4 4 4 4 5
5 5 5 5 5 5 5 5 5
Sample input 1
4
5 4 1 4
Sample output 1
2
Sample input 1
5
1 2 3 4 5
Sample output 1
24
Sample input 2
5
4000 4001 4002 4003 4004
Sample output 2
32016
Enter·n:·214
4
1
2
WITH COMMENTS AND EXPLANATION
Create a program with comments that can record the name, gender, and grades of a student in a certain subject. The grades consist of 1st, 2nd, 3rd, and 4th quarters.
The program should be able to do the following:
• Add new student
• Set student grades
• Show all students w/ grades
• Show student grade remarks (PASS or FAILED), passing mark is >= 75
• Search student record
The program should use the following features:
• Array
• Class
• Specific Sorting Algorithm (Bubble, Selection, Insertion, Merge, Shell)
• Specific Searching Algorithm (Linear, Binary, Fibonacci, Jump)