Define what an algorithm is and outline the characteristics of a good algorithm. Write the algorithms to display the Fibonacci series and the factorial value for a given number using Pseudo code. Determine the steps involved in the process of writing and executing a program.
Take a sample number and dry run the above two algorithms. Show the outputs at the end of each iteration and the final output. Examine what Big-O notation is and explain its role in evaluating efficiencies of algorithms. Write the Python program code for the above two algorithms and critically evaluate their efficiencies using Big-O notation.
A. The Fibonacci numbers are the numbers in the following integer sequence.
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..
In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation.
Fn = F n-1 + F n-2
B. Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example, factorial of 6 is 6*5*4*3*2*1 which is 720.
n! = n * (n - 1) * …….. 1
Customer Care- 10
Sales and Marketing- 20
Finance- 25
Legal- 5
HR-10
Developers-55
Network Team-5
Server Room-Servers +ISP connections
· All departments must be separated with unique subnet .
· 192.168.10.0/24 is used for all the departments except the server room. IPs should assign using DHCP.
· ERP and CRM Systems need to be implemented in branch in local servers.
· Number of servers required for the Server room assigned with 10.254.1.0/24 subnet. (Uses static IPs)
· High level of redundancy is expected in network design to eliminate single point of failures and traffic bottle necks.
· Sales and Marketing need to access Network resources using WIFI connectivity.
· All possible network security .
Extreme IT Products is a local supplier that specializes in the sales of the latest Information Technology hardware devices. The business has recently opened an outlet in the town you reside and has hired the software development house you work for to design a Java application to manage their products.
WRITE A PROGRAM WHICH CAN FORM UP FOREX CHARTS, CANDLESTICK AND READ THE TIME WHICH WILL ALLOW THE TRADER TO TRADE NASDAQ AND GOLD AND OTHER PAIRS
Write a menu driven program in Java to automate the ATM operations by
demonstrating the concepts of interfaces. And create custom exceptions to
deal with the following situations
a. Invalid PIN number is entered more than 3 times
b. Withdraw operation when balance amount < withdraw amount
Given a Queue consisting of first n natural numbers (in random order). The task is to check whether the given Queue elements can be arranged in increasing order in another Queue using a stack in C. The operations allowed are: