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 sentence S. and a positive integer N. write a program to shift the sentence by N words to the right

INPUT

The first line pf input is a string S.

The second line of input is an integer N

OUTPUT

The output should be a single line containing the sentence by shifitng the N word to the right

EXPLANATION

in the example the sentence is python is a programming language and N is 2 shift the sentence two words to the right which means the last two words will be moved to the front.

so the output should be programming language python is a

sample input 1

Python is a programming language

2

sample output 1

programming language Python is a

sample input 2

Cats hate water

4

Sample output 2

water Cats hate



you given a list of prices where prices[i] is the price of a given stock o the i th day write a program to print the maximum profit by choosing a single day to buy a stock and choosing a different day in the future to sell that stock if these is no profit that can be achieved return 0

INPUT

the input is a single line containing space seperated integers

OUTPUT

the output should be an integer

Explanation

in the example the given prices are 7 1 5 3 6 4

buying stocks on day two having price 1 and selling them on the fifth day having price 6 would give the maximum profit which is 6 - 1

so the output should be 5.

sample input 1

7 1 5 3 6 4

sample output 1

5

sample input 2

1 11 13 21 19

sample output 2

20



use appropriate pointer operator to print the addresses of the numbers in memory, the memory address must be expressed in hexadecimal
After the addresses of the numbers ,use the deferencing operator to point to values contained within addresses. Use the function sort with begin() and end() function to organize the values in ascending order.After establishment the order of values ,assign values into an array called winning-numbers. You can use the statement or the initializer list to initialize
The amounts won must be determined by custom made function called amountDeterminant of type double and receives a double argument in prototype, the argument will be the winning number received from the sum of two (2)
Amount Determination must use switch conditions and operate as follows :
If the winning number is ,
1. Between 80 and 83 , the won amount is R1700000-00
2. Between 84 and 86, the won amount is R2 50000-00
3. Between 87 and 98, the won amount is R16000000-00

Write a program called National_lottery. it should use rand function to produce 6 random numbers to 0 & 49, number must not repeat. use an appropriate pointer to print address of numbers in memory and its must be in hexadecimal. use derefencing operator to point in address. use function sort with begin() & end() function to organise values in ascending order, use a for statement to intialise numbers into arrays. Search any 2 array element that give sum of >=80 when added together, if numbers >=80 are more than one set, consider the biggest set chosen for draw. if the value of sum of the two are >=80, print "You W" & if they are < 80, print "You L". Amount won by custom made function amountDeterminat of type & double argument in prototype. argument will be winning number received from sum of 2 numbers. amountDeterminant must use switch conditions. if winning numbers is (80-83 won amount 1700000, 84-86 R2500000, 87-98 R16000000). add this #include<vector>.


1. Draw diagrams showing a conceptual view and a process view of the architectures of the following;

(a) The MIS Web platform at the University of Ghana allows students to register for required semester courses and complete their registration. After completing their registration, the student can immediately print Proof of Registration.


draw diagrams showing a conceptual view and a process view of the architectures of the following systems: On the University campus, there are ATM machines that disburse cash to staff and students. After completing transactions, students and staff can check their account balances and retrieve transaction statements/receipts


An information system is to be developed to maintain information about assets owned by a utility company such as buildings, vehicles, and equipment. It is intended that this will be updatable by staff working in the field using mobile devices as new asset information becomes available. The company has several existing asset databases that should be integrated through this system. Design a layered architecture for this asset management system based on the generic information system architecture.


Advantages and disadvantage of computer

 ('')

 ( (

  ) )

 ( (

  ) )

 ( (

  ) )

 ( (

  ) )

   V


 ('')

 ( (

  ) )

 ( (

  ) )

 ( (

  ) )

 ( (

  ) )

   V


LATEST TUTORIALS
APPROVED BY CLIENTS