Get the input from the user for the number of rows and columns.
Print 0 in the row one.
Print 1 in the row two.
Case= Test 1
input=
5
5
output=
00000
11111
00000
11111
00000
Design notepad using swing controls.it should contain all options with their shortcut keys
Create a program which displays a menu “Menu” having menu items “First” & “Second”. When we click menu item “First”, it displays a dialog box with a Button “Hello”. When “Hello” button is clicked, it displays “Hello World”
Create a frame which include list and in this list section print table of any number and if user click exit the application get closed.
Write a C++ program to enter salary and output income tax and net salary using multiple inheritance concept.
"EBIDTA is Rs. 725 crs., depreciation is Rs. 59 crs. and ammortisation amount is Rs. 14 crs. Loans given amount to Rs. 240 crs. and the networth of the company is Rs. 825 crs. Calculate Return on Capital Employed of the company."
The fresh feed to ammonia synthesis reactor contains nitrogen, hydrogen and 2.0 mole
% inerts. The mole ratio of H2:N2 is 3:1. The product stream consists of pure
ammonia. The conversion in the reactor is 15 %, a recycle stream is used and in order
to avoid build-up of inerts, a purge is withdrawn. The rate of purge stream is adjusted
to keep inert concentration in the recycle stream at 8 mole per cent. Calculate the
moles of ammonia produced.
It is widely known that many drivers on interstate highways
in the United States do not observe the posted
speed limit. Assume that the actual rates of speed
driven by U.S. motorists are normally distributed with
mean mph and standard deviation 5 mph. Given this
information, answer each of the following independent
questions. (Hint: Use Goal Seek in parts a and b, and
use the Solver add-in with no objective in part c. Solver
is usually used to optimize, but it can also be used to
solve equations with multiple unknowns.)
a. If 40% of all U.S. drivers are observed traveling at
65 mph or more, what is the mean ?
b. If 25% of all U.S. drivers are observed traveling at
50 mph or less, what is the mean ?
c. Suppose now that the mean and standard deviation
of this distribution are both unknown. Furthermore, it
is observed that 40% of all U.S. drivers travel at less
than 55 mph and 10% of all U.S. drivers travel at more
than 70 mph. What must and be?
Note: You must use concept of circular array of at least size 10 to implement queue.
A queue is an object that allows the following operations:
Enqueue: Add an element to the end of the queue
Dequeue: Remove an element from the front of the queue
IsEmpty: Check if the queue is empty
IsFull: Check if the queue is full
Peek: Get the value of the front of the queue without removing it.
Create a class to define above mention operations of a queue and a main function to implement operations.
Note: You must use concept of circular array of at least size 10 to implement queue.
Note: Use Linked List to implement stack.
A stack is an object that allows the following operations:
Push: Add an element to the top of a stack
Pop: Remove an element from the top of a stack
IsEmpty: Check if the stack is empty
Peek: Get the value of the top element without removing it
Create a class to define above mention operations of stack along with some addition functionality:
i. Copy a stack to another one.
ii. Delete an element at a specified location.
iii. Returns the count of elements in a stack.
iv. Insert an element at a specified location.
Write a main function to test the functionality of above class.
Remember: To access any element that is not at top, you have to first pop all other elements on the top of that.
Note: Use Linked List to implement stack.