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

Write a program using for loop statement that will display a series of number in ascending and descending order and it will also display the odd and even numbers.



Note: Use scanner and for loop statement



Sample output:




Enter a number: 15



Number in ASCENDING orders


1


2


3


4


5


6


7


8


9


10


11


12


13


14


15



Number in DESCENDING orders


15


14


13


12


11


10


9


8


7


6


5


4


3


2


1



EVEN Number


2


4


6


8


10


12


14



ODD Number


1


3


5


7


9


11


13


15





Create a python program of this output.

Choices:

1 - Output 1

2 - Output 2

3 - Output 3

Enter your choice: 3

Enter a number:5

  * 

  * * 

 * * * 

 * * * * 

* * * * * 

Do you want to try again?: N

Thank you have a good day!


Create a python program of this output.

Choices:

1 - Output 1

2 - Output 2

3 - Output 3

Enter your choice: 3

Enter a number:5

  * 

  * * 

 * * * 

 * * * * 

* * * * * 


Write your OWN CLASS for realization one of data structure - Queue, Stack, Singly linked list, Doubly linked list, Circular list, Random access array.


Develop a program that reads from the keyboard sequence of N unique integers N (1 <N <256), saves them to a data structure (Queue, Stack, Singly linked list, Doubly linked list, Circular list, Random access array.) and displays the following characteristics: 

- number of elements; 

- average of saved items; 

- minimum and maximum element; 

- fourth element of the sequence; 

- element that is before the minimum element.

We emphasize that all the characteristics necessary must be define for a filled data structure. Only those operations that are inherent to given structure are allowed, for example, one must not access an element on an arbitrary position in a queue which is based on an array. Usage of ready data structures (e.g., STL) is prohibited. 


Write a program in Java to store 30 numbers in an array then display those numbers in descending order with a condition that maximum 5 numbers will appear in one line.

Search all occurrences of an element in an array of 10 elements using ptr notation.

write a program to define a structure called a car. the member elements of the car structure are model(like bmw, ford...etc), production year (1999,2020,...), and lastly price. create an array of 10 cars. get input for all 10 cars from the user. then the program display complete information (model, year, price) of those cars only which are above 250000 in price or production date bigger than 2000.

Write an algorithm, Pseudo Code and Flow Chart for the following scenario:



Suppose you are having Rs. 500. You have purchased one pen priced Rs. 25.0 per



unit, 3 notebooks priced 45 per unit, 1 drawing copy priced 50 per unit. You give the



currency of Rs. 200 to the shopkeeper. Find out the amount shopkeeper will return to



you and also tell the total item purchased.

(a) Write an algorithm, pseudo code and draw flow chart for following scenario:


The mission is to move all the disks to some another tower without violating the


sequence of arrangement. A few rules to be followed for doing this are as follows −


 Only one disk can be moved among the towers at any given time.


 Only the "top" disk can be removed.


 No large disk can sit over a small disk.

Write a C++ program to copy a file into another file using following rules:



i) convert lowercase alphabets to uppercase alphabets and vice versa.



ii) copy other characters as it is.

LATEST TUTORIALS
APPROVED BY CLIENTS