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

Write a program that does the following for 15 students:

• Reads in 3 marks for each student (marks must be between 0 and 100)

• Calculates and displays the highest mark for each student.


Update your solution to also read in the name of each student, and when displaying the overall highest mark, the name of the relevant student should also be displayed.


Update your solution to make use of the getMark method (written for task 3 of this prac, code copied to this solution).


You can also consider creating other user defined methods to update your solution.


Create a program whose Main() method prompts a user for length and width of a room in meter. Create a method that accepts the values and then computes the estimated cost of painting the room, assuming the room is rectangular and has four full walls and the walls are 2.6 meter high. The rate for the painting job is R20 per square meter.


Return the estimated cost to the Main() method, and display it.


Write a user defined method named getMark that can be used to get a valid mark from the user. Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks are between 0 and 100). If a user enters an invalid mark, display an error message before asking for a valid mark to be entered. The method must return the valid value to the calling program.


Write a user defined method named isPass that can be used to determine whether a mark is a pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean, indicating whether the mark was a pass mark.


Definition, Advantages and Disadvantages of Observation, Interview and and Survey


write a python program to accept a string. do this continuosly until the user enters the enter key only. then save all those strings into a file named user_strings . text . open and read the saved file to print the number of occurence of the vowels and non-vowels.


Write a program that calculates the final velocity of an object by taking following inputs from the user: vi = initial velocity, a = acceleration, t = time span.


Suppose there are three students in a class and their marks have been uploaded to the

software system, these students have applied for scholarship through online software system. The system should compare marks of these three students and should award scholarship to

the one with high marks.


Suppose a business has hired you as a programmer to develop their profit and lost System. And being software developer you have to analyze their last three years data. The business requirements are as follow. If the price of selling and price of cost of a good or product is entered through keyboard. You need to write the code for finding whether the seller (business) has made profit out of business or has suffered loss, you should also find out how much profit or loss has been made by the business in these three years


In this javascript code there are 4 test cases, 4th test case was not getting expected output


Test cases are in below url link

https://drive.google.com/file/d/1pUV22FRZxZXuZQdyywfDXs2pS30r6dKc/view?usp=sharing


Code in below url link

https://drive.google.com/file/d/15gIWqTU2mGKhr8gaVS-lVXNed5jxPXXQ/view?usp=sharing









Add two polynomials

write a program that adds the given two polynomials A and B.


Input


The first line contains a single integer M.

Next M lines contain two integers Pi, Ci of poly A

After that next line contains a single integer N.

Next N lines contain two integers Pj, Cj of poly B


Output


Print the addition of poly's A and B.

The format for printing polynomials is: Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0, where Pi's are powers in decreasing order, Ci is co-efficient and C0 is constant, there will be space before and after the plus or minus sign.

If co-eff is zero then don't print the term.

If the term with highest degree is negative, the term should be represented as -Cix^Pi.

For the term where power is 1 represent it as C1x instead of C1x^1.

If the degree of poly is zero and the constant term is also zero, then just print 0 to represent the poly.

For term Cix^Pi, if the coefficient of the term Ci is 1, simply print x^Pi instead of 1x^Pi.


Sample input

4

0 5

1 0

2 10

3 6

4

0 -5

1 0

2 -10

3 -6


Expected output



Create a user defined method named calcCost() that accepts two values as input (length and width), and then computes the estimated cost of painting the room, assuming the room is rectangular and has four full walls and the walls are 2.6 meter high. The rate for the painting job is R20 per square meter. Your method should return the estimated cost to the calling method.


Create a program whose Main() method prompts a user for the length and the width of a room in meter, then calls calcCost to calculate the estimated cost. Once calculated, you should display the estimated cost.


LATEST TUTORIALS
APPROVED BY CLIENTS