Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

What is library in python?

Create a console program that will perform the following:


• Ask the user to enter the pieces of apple.


• Ask the user to enter the total price of the apple(s).


• Print the total price of the entered pieces of apple(s).


• Convert the entered price into a whole number, then display the values of the original


price and the converted price.




Create a console program that will perform the following:


• Ask the user to enter the pieces of apple.


• Ask the user to enter the total price of the apple(s).


• Print the total price of the entered pieces of apple(s).


• Convert the entered price into a whole number, then display the values of the original


price and the converted price.




Matrix Rotation

You're given a square matrix A of dimentions N X n. You need to apply below 3 operations.

Rotation: It is represented as R S where S is an integer in {90,180,270...} which denotes the number of degrees to rotate .You need to rotate the matrix A by angle S in the clockwise direction.

The angle of rotation S will always be in multiples of 90 degrees.

Update: It is represented as U X Y Z. In initial matrix A , you need to update the element at row index X and column index Y with value Z.

Querying: It is represented as Q K L.You need to print the value at row index K and column index L of the matrix of the matrix A.


Sample Input 1

2

1 2

R 90

Q 0 0

Q 0 1

R 90

Q 0 0

U 0 0 6

Q 1 1

-1


Sample Output 1

3

1

4

6


Sample Input 2

2

5 6

7 8

R 90

Q 0 1

R 270

Q 1 1

R 180

U 0 0 4

Q 0 0

-1

Sample Output 2

5

8

8



Write a program that takes as input the marks of three tests and computes the total and average marks of the student. The program should also display 'SELECTED FOR NASA TRIP' if the total marks exceeds 250 and 'BETTER LUCK NEXT TIME'

Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the max and average. A negative integer ends the input and is not included in the statistics. Assume the input contains at least one non-negative integer.

Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(2); once before all other cout statements.

Ex: When the input is: 

15 20 0 3 -1

the output is: 

20 9.50

Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the max and average. A negative integer ends the input and is not included in the statistics. Assume the input contains at least one non-negative integer.

Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(2); once before all other cout statements.

Ex: When the input is: 

15 20 0 3 -1

the output is: 

20 9.50

The first line will contain a message prompt to input the text message.

The second line will contain the number of vowels found in the text message.






Carefully analyze the given pseudo-code and supply the output  based on each given test value.


Read salary

If salary < 50000 then tax = 0

else

If salary > 50000 AND salary < 100000 then tax = 50000 * 0.05

else

tax = 100000 * 0.30

Display tax

 

31. – 35. salary= 85000

36. – 40. salary = 42000

41. – 45. salary = 122000


People who earn less than R6 000.00 or who are older than 70 years do not pay tax. Write a program that reads in a person’s salary and age. If the person should pay tax, your program should request the tax percentage. The program must finally display an appropriate message.


LATEST TUTORIALS
APPROVED BY CLIENTS