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

Sam runs a local musical equipment store in your neighbourhood. He has contracted you to create

an interactive application that will assist him with customer purchases. Create a class named

Customer Purchases that will contain get and set methods for a customer number, first name,

surname, product, price and quantity. Create a separate class called Printing that will include a

method called Print Details, that will print the Customer Invoice. In the Printing class include

another method called Customer Purchase Report which will display the following information:


Calculate the time complexity of the following program fragments.

(a) π‘“π‘œπ‘Ÿ (𝑖 = 1; 𝑖 ≀ 𝑛; 𝑖 βˆ— = 2)

{ π‘₯=π‘₯+1 }

(b) π‘“π‘œπ‘Ÿ (𝑖 = 1; 𝑖 ≀ 𝑛; 𝑖 + +)

π‘“π‘œπ‘Ÿ (𝑗 = 1; 𝑗 ≀ 𝑛; 𝑗 = 𝑗 βˆ— 2) {

....

....

}


in a cricket game the two teams a and b have different characteristics of players in terms of batsman and bowlers. find similar characteristics of players using union operation. write a program for set operation using pointers.


A program needs to be developed for helping your younger siblings to calculate the area of a square when the input(side) is given. The program first of all needs to permit him/her to work on the area when he/she is below class 6. The program should allow for new entering of class when the class given doesn’t meet the requirement for working on area of a square. Also, ensure that the side given is a positive number else allow him/her enter a new side.Β 


Write a C++ program that creates two one dimensional arrays β€œA” and β€œB” of size 20 elements each. The main program should get the input in the array β€œA” from the user and initialize array β€œB” with values β€œ0”. Your program should calculate the (number -2) of each element of array β€œA” and should store in the square value in corresponding positions (index) in the array β€œB”. In the end, the main program (main function) prints the calculated values of array β€œB”. Also display the values in array B which are Odd


At the peak of COVID-19, most worker started working from home. Salaries of workers were reduced by 30%. Assuming income tax was also reduced by 50% from the previous rate of 15% and workers were paid on the number of hours worked in a month and each worker is supposed to work a total of 170 hours in a month. All overtime has been cancelled. If a worker does not meet the 170 hours’ threshold for a month, 5% is deducted from the salary. Assuming the hourly rate is GHC 10, Write a c++ program for the scenario narrated above. Your program should:

a) request for an employee’s name, the number of hours worked in a month AP[2 marks]

b) define a function called payRole, your function should compute a worker’s salary and income tax and any deductions if any

c) your program should display the results in β€œb” above.

AN[10 marks]

AP[3 marks]

d) explain the logic behind the code especially the function


A multinational company opens multiple branches all over that Pakistan. If you are hired to design the networking from the company, what type of network you will select? What type of network topology will be suitable for the linking different branches or different department inside the single company branch? List down the network equipment you may require during this implementation.

Given a list of numbers, write a program to print the smallest positive integer missing in the given numbers.Input


The input will be a single line containing numbers separated by space.Output


The output should be a single line containing the smallest missing number from given numbers.Explanation


For example, if the input numbers are 3, 1, 2, 5, 3, 7, 7.

The number 1, 2, 3 are present. But the number 4 is not. So 4 is the smallest positive integers that is missing from the given numbers.

Sample Input 1

3 1 2 5 3 7 7

Sample Output 1

4

Sample Input 2

5 5 2 3 1 8 8 4

Sample Output 2

6


Secret Message - 2

Given a string, write a program to print a secret message that replaces characters with numbers 'a' with 1, 'b' with 2, ..., 'z' with 26 where characters are separated by '-'.


Note: You need to replace both uppercase and lowercase characters. You can ignore replacing 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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


Input

Explanation


For example, if the given input is "python", "p" should replaced with "16", similarly"y" with "25","t" with "20","h" with "8","o" with "15","n" with "14". So the output should be "16-25-20-8-15-14".

Sample Input 1

python


Sample Output 1

16-25-20-8-15-14


Sample Input 2

Foundations


Sample Output 2

6-15-21-14-4-1-20-9-15-14-19




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




LATEST TUTORIALS
APPROVED BY CLIENTS