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

Task 1 only

Produce an entity relationship model for the proposed database system for Domingo Roof Works. Use Integration Definition for Information Modeling (IDEF1X) standard.

https://drive.google.com/file/d/1cBMx_IECHS2f6FvA433w6sb2NlC4-Bah/view?usp=sharing

Write program that applies concept of varags method to create function, display() which takes 3 parameters: (1) one parameter named object of String type, (2) one array called atoms, of String type, and (3)variable-length list of parameters named n. Import Scanner class to source file. In the main() function, use tools provided by the Scanner class to take three string literals as inputs one by one. • The first input is the name of a subject (ex: “glucose”). • The 2nd input is list of atomic symbols (ex: C Cl Na O) • The 3rd input is list of integers (ex: 18 12 5 2). Then, call display() function and pass the 3 inputs as values of parameters of display() function. Upon receiving the values, the display() function must be able to split string literals properly into arrays of String type, except the one passed to object parameter. Ex:

Enter the name of a subject: glucose

Enter list of atomic symbols: C H O

Enter list of integers: 6 12 6

The molecular formula of glucose is C6H12O6



Create one array “sign” of char type whose elements are 'H', 'D', 'S', and 'C'. Create one variable “n” of int type whose initial value is -1 and other variable named “i” of int type whose initial value is also -1. Create function named “pickCard()” of void type that randomly generate two integers. Limit first random number with range of 0 to 3,then assign randomly generated number to “i” variable. Limit second random number with range from 1 to 13, then assign the randomly generated number to “n” variable. Then, make sure “pickCard()” function can display one of “sign” array's values according to value assigned to “i” variable. Have “pickCard()” function display the value assigned to the “i” variable and meet all conditions specified in the following table


Value of i | Display

1 | A

11 | J

12 | Q

13 | K

Finally, use a while loop to call the “pickCard()” 5 times.


Memory allocation: Supposed a process request 3Kb, 2Kb and  4Kb   of memory and the memory manager currently has 5Kb, 3Kb, 2Kb.

Using C++: Output:


Input Memory Size:


5Kb


3Kb


2Kb


 


Input 3 Jobs:


3Kb


2Kb


4Kb





Create a sub class of Car class and name it as Truck. The Truck class has the following fields and methods.

◦intweight;


Sum of Prime Numbers In the Input

Given a list of integers, write a program to print the sum of all prime numbers in the list of integers.

Note: One is neither prime nor composite number.Input


The input will be a single line containing space-separated integers..Output


The output should be a single line containing the sum of all prime numbers from 1 to N.Explanation


For example, if the given list of integers are

2 4 5 6 7 3 8


As 2, 3, 5 and 7 are prime numbers, your code should print the sum of these numbers. So the output should be 17.

Sample Input 1

2 4 5 6 7 3 8

Sample Output 1

17

Sample Input 2

65 87 96 31 32 86 57 69 20 42

Sample Output 2

31




Mean, Median and Mode

Given a list of integers, write a program to print the mean, median and mode.

Mean - The average value of all the numbers.

Median - The mid point value in the sorted list.

Mode - The most common value in the list. If multiple elements with same frequency are present, print all the values with same frequency in increasing order.Input


The input will be a single line containing space-separated integers.Output


For example, if the given list of integers are

2 6 3 1 8 12 2 9 10 3 4

The average of all the numbers is 5.45


After sorting the array,

1 2 2 3 3 4 6 8 9 10 12

as the length of the list is an odd number, the median will be the middle number in the sorted list. So the median will be 4.

As 2 and 3 are having the same frequency, the mode will be 2 3.

So the output should be

Mean: 5.45
Median: 4
Mode: 2 3

Sample Input 1

2 4 5 6 7 8 2 4 5 2 3 8


Sample Output 1

Mean: 4.67

Median: 4.5

Mode: 2


Sample Input 2

2 6 3 1 8 12 2 9 10 3 4


Sample Output 2

Mean: 5.45

Median: 4

Mode: 2 3








Shift Numbers - 2

Given a string, write a program to move all the numbers in it to its start.Input


The input will contain a string A.Output


The output should contain a string after moving all the numbers in it to its start.Explanation


For example, if the given string A is "1good23morning456", the output should be "123456goodmorning", as it contains numbers at the start.


Sample Input 1

1good23morning456


Sample Output 1

123456goodmorning


Sample Input 2

com876binat25ion


Sample Output 2

87625combination




Sum of Prime Numbers In the Input

Given a list of integers, write a program to print the sum of all prime numbers in the list of integers.

Note: One is neither prime nor composite number.Input


The input will be a single line containing space-separated integers..Output


The output should be a single line containing the sum of all prime numbers from 1 to N.Explanation


For example, if the given list of integers are

2 4 5 6 7 3 8


As 2, 3, 5 and 7 are prime numbers, your code should print the sum of these numbers. So the output should be 17.


Sample Input 1

2 4 5 6 7 3 8


Sample Output 1

17


Sample Input 2

65 87 96 31 32 86 57 69 20 42


Sample Output 2

31




Sum of Prime Numbers from M to N

Given two integers M and N, write a program to print the sum of prime numbers from M to N. (Both M and N are inclusive).Input


The first line of input will contain a positive integer (M).

The second line of input will contain a positive integer (N).Output


The output should be a single line containing the sum of prime numbers from M to N.Explanation


For example, if the given M and N are 5 and 11, as all the prime numbers from 5 to 11 are 5, 7, and 11. So the output should be sum of these primes (5+7+11), which is 23.


Similarly, if the given numbers are M is 18 and N is 40, as all the prime numbers from 18 to 40 are 19, 23, 29, 31,and 37. So the output should be sum of these primes (19+23+29+31+37), which is 139.


Sample Input 1

5

11


Sample Output 1

23


Sample Input 2

18

40


Sample Output 2

139




LATEST TUTORIALS
APPROVED BY CLIENTS