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

Maximum

You are given N number of inputs. Print the maximum of them after each input.

Input

The first line of input is an integer N. The next N lines each contain an integer as input.

Explanation

In the example, you are given

6 inputs 1, 0, 3, 2, 9, 8.

1 is maximum in the input 1.

1 is maximum in the input 1, 0.

3 is maximum in the input 1, 0, 3.

3 is maximum in the input 1, 0, 3, 2.

9 is maximum in the input 1, 0, 3, 2, 9.

9 is maximum in the input 1, 0, 3, 2, 9, 8.

 


So, the output should be


1

3

3

9

9


Sample Input 1

6

1


3

2

9

8

Sample Output 1

1

1

3

3

9

9

Sample Input 2

5

1

2

3

4

5

Sample Output 2

1

2

3

4

5




Replacing Characters of Sentence

You are given a string S. Write a program to replace each letter of the string with the next letter that comes in the English alphabet.

Note: Ensure that while replacing the letters, uppercase should be replaced with uppercase letters, and lowercase should be replaced with lowercase letters.

Input

The first line of input is a string.

Explanation

In the given example,

Hello World. If we replace each letter with the letter that comes next in the English alphabet,

H becomes I, e becomes f and so on ... So, the output should be Ifmmp Xpsme.

Sample Input 1

Hello World

Sample Output 1

Ifmmp Xpsme

Sample Input 2

Something is better than Nothing

Sample Output 2

Tpnfuijoh jt cfuufs uibo Opuijoh




You are given a square matrix A of dimensions NxN. You need to apply the below given 3 operations on the matrix A.


Rotation: It is represented as R S where S is an integer in {90, 180, 270, 360, 450, ...} 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 (as given in input), you need to update the element at row index X and column index Y with value Z.

After the update, all the previous rotation operations have to be applied to the updated initial matrix.


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 A.



Use the nested list to maintain the matrix.

Use indexing to get the operation.

You can iterate over the matrix or use indexing appropriately to perform appropriate operations.


Write a function solution given a strong D representing the day of the week and an integer N that returns the day of the week N days later. The program should check of the days of the week entered os a string and its in the list.In addition the program should only accept between 0-100 and must be an integer. It will display an invalid input message. Out puts should be written in a txt.file format


 The order in which you ask the user for the words matters and needs to match the s

Let's play Silly Sentences!

Enter a name: Grace
Enter an adjective: stinky
Enter an adjective: blue
Enter an adverb: quietly
Enter a food: soup
Enter another food: bananas
Enter a noun: button
Enter a place: Paris
Enter a verb: jump

Grace was planning a dream vacation to Paris.
Grace was especially looking forward to trying the local
cuisine, including stinky soup and bananas.

Grace will have to practice the language quietly to
make it easier to jump with people.

Grace has a long list of sights to see, including the
button museum and the blue park.

Output Template


Let's play Silly Sentences!

[name] was planning a dream vacation to [place].
[name] was especially looking forward to trying the local
cuisine, including [adjective 1] [food 1] and [food 2].
 
[name] will have to practice the language [adverb] to
make it easier to [verb] with people.
 
[name] has a long list of sights to see, including the
[noun] museum and the [adjective 2] park











program that will use function accept() to input any 3 integer values. The program must also then use another function greatest() to determine and return the highest number. [10 marks]
Write a program to calculate the salary as per the following table:

Gender

Years of Service

Qualifications

Salary (RTGS)

Male

>= 10

Post-Graduate

$15 000

>= 10

Graduate

$10 000

< 10

Post-Graduate

$10 000

< 10

Graduate

$7 000

Female

>= 10

Post-Graduate

$12 000

>= 10

Graduate

$9 000

< 10

Post-Graduate

$10 000

< 10

Graduate

$6 000
Question 1

While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 10. If quantity and price per item are input through the keyboard, write a program to calculate the total expenses.

To develop Java application and use Java Swing using below

requirements.


Tutora is an educational institute which provides education and research to country. Currently their entire business process is operated with books and emails. As a startup company your group has been hired to automate the manual process of Tutora. The following main business requirements has been discussed by the client. Implement a java Swing Application to automate the business requirements.  


Manage Examination issues (Add,Update,Remove)


To develop Java application and use Java Swing using below

requirements.


Tutora is an educational institute which provides education and

research to country. Currently their entire business process is

operated with books and emails. As a startup company your group has

been hired to automate the manual process of Tutora. The following

main business requirements has been discussed by the client. Implement

a java Swing Application to automate the business requirements.


Manage Examination issues (Add,Update,Remove) 


LATEST TUTORIALS
APPROVED BY CLIENTS