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

Secret Message - 1


Given a string, write a program to mirror the characters of the string in alphabetical order to create a secret message.




Note: Mirroring the characters in alphabetical order replacing the letters 'a' with 'z', 'b' with 'y', ... , 'z' with 'a'. You need to mirror both uppercase and lowercase characters. You can ignore mirroring for all characters that are not letters.




a b c d e f g h i j k l m n o p q r s t u v w x y z


z y x w v u t s r q p o n m l k j i h g f e d c b a




Explanation


Input


For example, if the given input is "python", "p" should replaced with "k", similarly "y" with "b", "t" with "g", "h" with "s", "o" with "l", "n" with "m". So the output should be "kbgslm".




Sample Input 1


python




Sample Output 1


kbgslm




Sample Input 2


Foundations




Sample Output 2


ulfmwzgrlmh


Create a program using the following features:

* Array

* Class

* Specific Sorting Algorithm

* Specific Searching Algorithm


What is "Specific Sorting Algorithm" and "Specific Searching Algorithm"?

* sorting code that uses a specific sorting process, here is the list of sorting algorithms that you will use

Bubble

Selection

Insertion

Merge

Shell

* searching code that uses a specific searching process, here is the list of searching algorithms that you will use

Linear

Binary

Fibonacci

Jump


Create a program using the following features:

* Array

* Class

* Specific Sorting Algorithm

* Specific Searching Algorithm


Given an integer N as a starting number and K as input, write a program to print a number pyramid of K rows as shown below.


Given starting number is 10, and the number of rows in the pyramid is 5.


So the output should be:


10

11 12

13 14 15

16 17 18 19

20 21 22 23 24


Given an integer number N as input. Write a program to print the right-angled triangular pattern of N lines as shown below.


Note: There is a space after each asterisk ( * ) character


In the given example the solid right angled triangle of side 4. Therefore, the output should be.


* * * *

  * * *

   * *

     *


In the given example, D = Monday.As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will be Sundays (A week has 7 dats). So the 16th day (N = 16) of the month will be Tuesday.


Sample Input:

Monday

16


Sample Output:

Tuesday


 Suppose there is class of 10 students who have CGPA between 0-10. The university has decided to give the grace for those students those who have the CGPA between 4.5 to 4.9 to make it 5. Identify the students those have CGPA after adding the grace marks. Suppose students have its Roll_no & CGPA. Add the grace CGPA to the obtained CGPA of student by adding grace of 5 marks into the students through list comprehensions. Input Format- The input should contains an array of roll_no,and CGPA of the students. Constraints- CGPA must lies between 1.0 to 10.0 otherwise print "invalid input" Output Format- For each test case, display the roll_no and increased CGPA of those students only who lies between the obtained CGPA of 4.5-4.9


Create a program that will accept three numbers as inputs and then specifies which of them has the greatest value.

if input is rock, paper two player are plaing hand game how to write a program 

You can approximate n by using the following summation:


n=4(1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + ..... + (-1)i + 1/2i - 1





Write a program that displays the n value for i = 10000, 20000, … and 100000.



Program Output:


3.1414926535900345


3.1415426535898248


3.141559320256462


3.1415676535897985


3.1415726535897814


3.141575986923102


3.141578367875482


3.1415801535897496


3.1415815424786238


3.1415826535897198

LATEST TUTORIALS
APPROVED BY CLIENTS