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

You are a network administrator, been tasked to create a network connection of 3 different departments. Each department has got 3 pc's. In your network include DNS server, Web server, email server


Find the password:

Joey is planning escape room and to exit the room he has to find the password for the final door .To know the password he is given a sentence G and told to rearrange the sentence by rotating it's w words in the right.Can you help joey find the password

input:

The input is a string G

The second line input is integer w

i/p:

Raju is going to school

3

o/p:

going to school Raju is

i/p: Trapezium order pattern

1

o/p: pattern Trapezium order


CONCATENATION GAME:

Sameer is playing a game. To win that game he has to combine the list of strings vertically(column wise) and present the final answer in that pattern.

input:

The first line of input contains an integer N that denotes the number of lists to combine

Each of the next N lines of the input contains strings separated by space.

i/p:

1

Hy

o/p:Hy


i/p:

2

by by

hy hy

o/p:

byhy

byhy

i/p:2

by hy

hy

o/p:

byhy

hy


i/p:3

Not you kid

They are got

Like great

o/p:

NotTheyLike

youaregreat

kidgot



SUM OF POWERS:

you are given a list of integers L of size N. write a program to compute the value of SUM

SUM=x1pow1+x2pow2+x3pow3+-----+xNpowN

where xi concatenated with powi is the i th element of the list L and powj is single digit number

input:

The input contains space-separated N integers

Explanation: L=[25]

x1=2 ,pow1=5

SUM=2^5=32

i/p: L=[132,301]

x1=13,pow1=2

x2=30,pow2=1

SUM=13^2 +30^1=199


i/p:25

o/p:32

i/p:132 301

o/p:199




Program to calculate discount If customer purchase clothes on Offseason, set discount 15% and on Onseason 40%


 Should use two classes, Onseason and Offseason


 Use two methods- discount(method name should be same)

Maximum Number of Books:

There are multiple(T)book stores in the area each shopkeeper has a list of B integers that represents the cost of each book you have different pocket money(p) for each book store. write a program to calculate the maximum number of books you can buy in each store with the corresponding packet money.

input:

The first line of input is a positive integer T that represents the number of shops.

The following lines represent the details of the T shops.

Each set of two consecutive lines represents the details of a shop.

The first line of each set contains two space-seperated integers B & P

The second line of each set contains B space-seperated integers.

input:

3

6 100

20 40 10 80 20 10

4 70

20 10 300 30

4 200

220 1000 500 2000

output:

5

3


input:

2

8 250

2070 1350 365 2750 30 20 140 240

4 500

1070 2893 2200 39

output:

3

1





Math Quiz:


The first line input space-seperated integers.

the second line input is positive integer M denoting the number of index ranges

The next M lines contains two space-seperated integers of the range.


explanation: 1 2 2 3 3 3 4 5 6

2

0 2

1 4

output:

1+2+2=5

1+2+2+3+3+3+4=18


input:

1 2 2 3 3 3 4 5 6

2

0 2

1 4

output:

5

18

input:6 6 14 20 8 -2 2 -3

4

1 2

2 5

3 6

0 4

output:

2

2

12

2




Problem # 2



SM Supermalls is one of Southeast Asia's biggest developers and the operator of 72 malls in the Philippines. Create a C++ program that displays the number of rewards points an SM Mall customer earns each month. The rewards points should be based on membership type and total purchased amount each month. The output should be in a fixed point notation with no decimal places.



Membership Type



Advantage



Total Monthly Purchase



Less than 3750



3750 7499



7500 and over



Prestige



Less than 10,000



10,000 and over



Reward points



5% of the total monthly purchased



7.5% of the total monthly



10% of the total monthly



4% of the total monthly



15% of the total monthly

Suppose that you have a computer with a memory unit of 24 bits per word. In this computer, the assembly program’s instruction set consists of 198 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a. How many bits are needed for the opcode? b. How many bits are left for the address part of the instruction? c. How many additional instructions could be added to this instruction set without exceeding the assigned number of bits? Discuss and show your calculations. d. What is the largest unsigned binary number that the address can hold?


Write an assembly program using MARIE's assembly Instruction set that prompts the user to enter a non-negative integer that is less than 10. The program should include a subroutine that keeps prompting until a valid value is obtained. When a valid number is entered, it will be displayed. (Hint: Use JNS & JUMPI instructions to implement the subroutine)


LATEST TUTORIALS
APPROVED BY CLIENTS