Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Write a program that assigns Twenty random numbers to an array and counts all prime numbers entered by the user. The program finally displays a total number of primes in the array.


Write a program to copy the contents of one array into another in the reverse order.


Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are positive, how many are negative, how many are even, and how many odd.


Write a program which takes 10 numbers from the user and store them in an array and find the average, Largest and smallest number in the array


In a factory, different vehicles are being allocated different id. There are vehicles that have same ids as well because they have loaded same material and are of same model. At check post there are two list for maintaining the records of vehicle.

●      In_list which consist of ids of vehicle that are present in factory.

●      out_list contain the ids of vehicles that are about to come in factory.

Any vehicle from out_list will enter in factory when vehicle from In_list will go out of factory.Write a program that ask user vehicle id which will go out and delete that entry from In_list (if duplicate remove all entries and adjust array by back shifting as shown in example). Take next entry from the out_list and put in the In_list. Remember Out_list does not have any duplicate entries. Value from the out_list should be taken from index zero 


In procedural programming, create a function named "getArea()" with the following parameters.

a. int length

b. int width

c. int radius

Note. Use the following variable names


In form of procedural programming, create a program that computes the area of a given rectangle and circle.

Area of rectangle = length * width

Area of circle = 3.1416 * radius



Currently, this program will add 6 and 3 together, output the math problem and output the answer. Edit this code so that a random number is generated from 1 - 10 (inclusive) for the variables a and b. Also, instead of adding the two numbers together, the edited program should multiply them, and output the proper math problem and answer. Be sure to update every line of code to reflect the changes needed.


In a factory, different vehicles are being allocated different id. There are vehicles that have same ids as well because they have loaded same material and are of same model. At check post there are two list for maintaining the records of vehicle.

●     In_list which consist of ids of vehicle that are present in factory.

●     out_list contain the ids of vehicles that are about to come in factory.

Any vehicle from out_list will enter in factory when vehicle from In_list will go out of factory.Write a program that ask user vehicle id which will go out and delete that entry from In_list (if duplicate remove all entries and adjust array by back shifting as shown in example). Take next entry from the out_list and put in the In_list. Remember Out_list does not have any duplicate entries. Value from the out_list should be taken from index zero (then adjust array shown in example)

     In_list

25

89

10

11

5

11

26

39

68

25


      out_list

128

69

13

512

120

100

21

69

56

0


Example:

Enter the vehicle you want to delete: 89

Intermediate step

In_list

25

10

11

5

11

26

39

68

25

 

out_list

128

69

13

512

120

100

21

69

56

0

Final output

In_list

25

10

11

5

11

26

39

68

25

128

out_list

69

13

512

120

100

21

69

56

0

-1

Note: You can delete a vehicle until out_list becomes empty, no deletion can take place after it.


In a factory, different vehicles are being allocated different id. There are vehicles that have same ids as well because they have loaded same material and are of same model. At check post there are two list for maintaining the records of vehicle.

●      In_list which consist of ids of vehicle that are present in factory.

●      out_list contain the ids of vehicles that are about to come in factory.

Any vehicle from out_list will enter in factory when vehicle from In_list will go out of factory.Write a program that ask user vehicle id which will go out and delete that entry from In_list (if duplicate remove all entries and adjust array by back shifting as shown in example). Take next entry from the out_list and put in the In_list. Remember Out_list does not have any duplicate entries. Value from the out_list should be taken from index zero (then adjust array shown in example)




LATEST TUTORIALS
APPROVED BY CLIENTS