Draw a flowchart that to perform the following steps:
a. The user must input two integers: firstNum and secondNum.
b. Output all the odd numbers between firstNum and secondNum inclusive.
c. Output the sum of all the even numbers between firstNum and secondNum inclusive.
d. Output all the numbers and their squares between 1 and 10.
e. Output the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.
The program should accept 5 records of books and displays them on the screen
Suppose in an exam a teacher needs to assign topics to the “n” students in two sets according to their roll numbers. For this, he has to divide the students in two groups, one containing the even roll
number, other group having odd roll number. Out of 60 students, help the teacher to identify which set (A or B) the particular student will get. Write a program for the same.
For odd roll numbers- Set A
For even roll numbers– Set B
Example: n=2
enter 2 rollnos
1st Rollno: 7
Output: Set A
2nd Rollno: 16
Output: Set B
FACTORIAL OF 5
a unique and unusual data value that is placed after all actual data is ......?
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.
Write a program to add two sparse matrices and the resulting matrix should be converted to a representation matrix.
Develop an algorithm to implement Stack using Queue data structure.