you want tobuy a particular stock at its loerest price andsell it later at its highest price,since the stock market is unpredictable,yousteal the price plans of a company for this stockfor the next N days.
Find the best price you can get to buy this stock to achieve maximum profit.
Note:The initial price of the stock is 0.
Diana proposed a algorithm for parsing complex mathematical expressions specified in a infix notation.
An infix notation is one where an operator is present between two operands e.g(2).T
his algorithm is also used in compiler creation in the parsing phase to generate astract syntax tree and postfix notations.
The algorithm also involves parsing expressions including parentheses and power operations The algorithm is basically,stack ased.
The learner is expected to write algorithms/pseudocode for the data structure on search and sort operations
Client loves numbers so much that he tries to find some quirky math bricks whenever he can. One day, he decides to take up a number and tries to find out its largest prime divisor. Note: Largest prime divisor has to be greater that 1 and less than the number itself. If there is no such divisor then return -1.
1 Textbox
3 Radio buttons
2 buttons
6 Labels
1 List box
2 panels
5 Checkboxes
Code must be written to respond to the user clicking on the buttons, radio buttons and check boxes.
Create a program named ConsoleAppException that divide 2 numbers and display the result. Ensure that your program implements the exception handling. Again, the program should have a constructor that initialize the result to zero. The calculation should happen in a method named Division() that takes two parameters (num1 and num2). The main method is only used to call the division() method . Use 25 for num1 and 0 for num2
Write a C# Program to rotate an Array of size 10 in left and right Direction three times Create a Class of ArrayRotate with data member of integer type array of size 10, property of that member, all constructors, destructor, user define displayArray() Method, RotateLeft(int[] arr) Method, RotateRight(int[] arr) Method. Then test the functionality of Class in the Driver Class of RotateArray.
1. Conduct online research of your own for more information about the difference between
an assembly, a namespace, and a type in C#.
2. Create an infographic containing the following information about each concept:
a. A short definition; and
b. An example that would be relevant to somebody that loves birds.
You can use any tool of your choice to create the infographic, but here are some online options to get your
started:
o Visme
o Snappa
Save your infographic as an image, using your surname and student number in the filename.
Write a program that accepts the amount of money deposited in a bank account, the annual interest rate and the target amount (The amount of money the account holder wants to have in the account after a period of time) and then calculates the number of years it will take for the money to accumulate to the targeted amount. NB: 1) The interest being earned is Compound Interest. 2) Don’t use the formula for calculating compound interest. For example if the money deposited is 10000 and the target amount is 20000 and the account earns an interest rate (compound) of 10% pa, then the output should be: - It will take 8 years for your money to reach your target. By the end of this period, the amount in your account will be 21435.89
Write a C# Program to rotate an Array of size 10 in left and right Direction three times Create a Class of ArrayRotate with data member of integer type array of size 10, property of that member, all constructors, destructor, user define displayArray() Method, RotateLeft(int[] arr) Method, RotateRight(int[] arr) Method. Then test the functionality of Class in the Driver Class of RotateArray.