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

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.


abcdefghijklmzyxwvutsrqpon nopqrstuvwxyzmlkjihgfedcbaInput


The input will be a string in the single line containing spaces and letters (both uppercase and lowercase).Output


The output should be a single line containing the secret message. All characters in the output should be in lower case.

Explanation


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




Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters.Input


The input will be a single line containing a string.Output


The output should contain the sum and average of the digits of all numbers that appear in the string.

Note: Round the average value to two decimal places.Explanation


For example, if the given string is "I am 25 years and 10 months old", the digits of all numbers that appear in the string are 2, 5, 1, 0. Your code should print the sum of all digits(8) and the average of all digits(2.0) in the new line.




a) What is control structure? Explain it’s classification.

 b) And write a code for calculating age of a person.

c) Which control structure has used in this code.


Identify a real-world scenario for the below task:


A task where the next one to work on is always the one that has been waiting the longest.

  1. For the above task, explain your choice of an appropriate data structure for such a task
  2. Provide the corresponding algorithm for solving such a problem based on the data structure you chose above. You can represent each step diagrammatically.

B. Identify a real-world scenario for the below task:

 5

 

  A task where the next one to work on is always the one that has been waiting the longest.

i. For the above task, explain your choice of an appropriate data structure for such a task. [3 marks]

ii. Provide the corresponding algorithm for solving such a problem based on the data structure you chose above. You can represent each step diagrammatically. [5 marks]


C. As the lead system engineer at AIT, you have been given raw data for hundred (100) students who sat for an entrance exam and you have been asked to write the pseudocode to summarize the results. For each student grade, it is written a “P” for pass and “F” for fail.

 6

 

Use indentation and line numbers to highlight the flow of the program:

Your pseudocode should address the following:

i. Prompt the user to enter each result one after the other

ii. Provide a count of the results of each type

iii. Summarize the results indicating the number that passed or failed


You Just got your 1st internship as C++ developer CONGRATULATIONS, your manager gives you your 1 st task to solve below. PROBLEM SPECIFICATION Your company wants to collect the total number of age groups within the company and calculate the average age of employees and the classification (see below table) within the company. You are required to write a program in C++ that will ask the user to enter the integer age. Determine in which group allocation each employee belongs (refer to table below) and calculate the total Age sum and the company average age. The program should populate a report showing all the information. The user should enter a negative value to indicate that they are done. Description Age group


Young employees From - 19 till 35

Middle Age group -36 till 49 (inclusive)

Elderly - 50 till 65


Please note the below points:

1. Demonstrate the use of loops to solve this problem. See example output

2. A sentinel should be utilized.


Make following classes into code. Write Getter and Setters for all members mentioned in brackets of each class, write Copy Constructor, Constructor and Destructor for each class.



class Car (Make, Model, Type, Passengers, WheelSize, ManualAuto)

class SportsCar (EngineType, Torque, Time_Zeroto60, Acceleration, TopSpeed) inherit SportsCar from Car

class Person (Name, Gender, Age, Nationality, CNIC)

  1. class Driver(Experience, Car, WinCount), inherit Driver from Person

 IT205


Identify and explain with practical examples the top ten Internet security flaws that system administrators must eliminate to avoid becoming an easy target for hackers.


Write a program that implements unit conversion for the following pairs: (1) lbs -> kg, (2) miles -> and (3) Fahrenheit -> Celsius. Each conversion should be implemented using a function with has no return value. The main program will ask the user for a number to indicate which conversion they want to perform. Within the body of each function the user will then be prompted for the value to be converted. The results of the conversion should be displayed within the function


LATEST TUTORIALS
APPROVED BY CLIENTS