Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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 (Selection)

• Specific Searching Algorithm (Linear)


Create a calendar program that allows you to enter a day , month, year and in three separate variables



arr1 = ["january","february","march","april","may","june"]

arr2 = ["july","august","septmber","october","november","december"]


first array value should be as key and second one as value

print //     ex: arr = [january= "July",february="äugust"]


A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies. Write a python

program that prompts the user to enter the total number of cookies, the number of cookies in a

box, and the number of cookie boxes in a container. The program then outputs the number of

Boxes and the number of containers to ship the cookies. Note that each box must contain the

specified number of cookies, and each container must contain the specified number of boxes. If

the last box of cookies contains less than the number of specified cookies, you can discard it and

output the number of leftover cookies. Similarly, if the last container contains less than the

number of specified boxes, you can discard it and output the number of leftover boxes.


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.


Assume radius of earth: 6371 km

Round length of each line and final result to 2 decimal points

If co-ordinates are missing for any country use 0.000 N 0.000 E


Population limit: 2072


Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submiiting

  • Ask the user to enter the name of the employee.
  • Prompt the user to select between full time and part time by pressing either F (full time) or P
  • (part time)
  • If F is pressed, ask the user to enter his monthly salary. Then display his name and salary.
  • If P is pressed, ask the user to type his rate (pay) per hour, the number of hours he worked, and the numbers of overtime.
  • Then display his name and wage. The computation of overtime pay is: ℎ × ( ℎ × 125%)
  • If an invalid letter is pressed, display an error message.

1.    Write a program which creates a class named babyRecord with four methods.

a)    One method will be used to write details of a child including date of birth, name, parent names and hospital name into a file called baby_data.txt.

b)   The second method will be used to read from the file baby_data.txt and store the data in a dictionary called records.

c)    The third method will be used to search for a baby using baby name or parent names information in the file called baby_data.txt.

d)   The last method will be used to delete records in the dictionary and file respectively.

Clearly show how exceptions are handled in your program in each method.


Write a function called calculate_tax that takes 3 arguments: your age, salary, and current job designation.



Your first task is to take these arguments as user input and pass these values to the function.



Your second task is to implement the function and calculate the tax as the following conditions:



NO TAX IF YOU ARE LESS THAN 18 YEARS OLD.


NO TAX IF YOU ARE THE PRESIDENT OF THE COMPANY


No tax if you get paid less than 10,000


5% tax if you get paid between 10K and 20K


10% tax if you get paid more than 20K


Finally return this tax value. Then print the returned value in the function call.


inpurt m = 5 (rows)

n = 10 (start from 10)



print....


24

23 22

21 20 19

18 17 16 15

14 13 12 11 10


Write two Python functions quotient () and remainder () which takes two numbers a and b as parameters such that:

• The function quotient () return the quotient q of the Euclidean division of a by b (without using the operator '//’) 


LATEST TUTORIALS
APPROVED BY CLIENTS