Questions: 856

Answers by our Experts: 763

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

 Imagine you have S amounts of savings in integers. You are thinking of buying stocks. Someone has provided you with 2 N-sized arrays of stock purchase prices, and their sell prices the following day. Write an algorithm that is able to take in S and the 2 arrays, and return the maximum profits that you are able to achieve the following day.


Note that the lengths of the 2 arrays are equal. The number at index i in the first array shows the purchase price of the ith stock and the number at index i in the second array shows the sell price of the ith stock.



Imagine you have S amounts of savings in integers. You are thinking of buying stocks. Someone has provided you with 2 N-sized arrays of stock purchase prices, and their sell prices the following day. Write an algorithm that is able to take in S and the 2 arrays, and return the maximum profits that you are able to achieve the following day.

. An ABC company’s plans to give a 6% year-end bonus to each of its employees



earning Rs 6,000 or more per month, and a fixed Rs. 250 bonus to the remaining



employees. Write an algorithm for calculating the bonus for an employee.

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the federal and provincial sales tax. Assume the federal sales tax is 10 percent and the provincial sales tax is 5 percent. The program should display the amount of the purchase, the federal sales tax, the provincial sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax).


Create a program using recursion with data structure show the code and the output.


Write the pseudocode for the following scenario which calculates the final amount a customer at a restaurant will pay at the till. The amount of the bill will be input first. Thereafter VAT (15%) will be calculated and added to the bill as well as a tip for the waiter (10% of the bill – on top of the added VAT). The final receipt of the bill must be printed out for the customer.


Using flowchart and pseudo code write a program that accepts four numbers and computes the sum, average and product of numbers

An algorithm read numbers between 0and 15 and check whether number is even or odd then display sum of even numbers and average of odd numbers

Write a pseudocode that converts 50 Celsius degrees into its equivalent Fahrenheit degrees. Use the formula: F= 9/5*C + 32


Write a pseudocode that converts 50 Celsius degrees into its equivalent Fahrenheit degrees.

Use the formula:

"f=9\/5*C+32"


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS