by CodeChum Admin
Do you still know what being divisible by a certain number means? In case you forgot, being divisible means that the number is capable of being divided by another number without a remainder. With this knowledge, you can surely solve this problem!
Instructions:
**Using a three dimensional array***
Sample:
Enter a number of tables: 2
Enter a number of rows: 2
Enter a number of columns: 2
Enter 8 number of elements:
1
2
3
4
5
6
7
8
The biggest number among them is: 8
The smallest number among them is: 1
Then second to the biggest number is: 7
In a hypothetical situation, select an industry of your choice. Given that there is a perennial issue that begs for automation or mechanization of the "as-is system":
i. develop a requirement elicitation technique (use at least four and explain explicitly how you used them) to appraise yourself with the issue, given that you have just been appointed as a freelance systems analyst;
Write a java program to find the sum of all odd numbers between 1 to n - using do...while loop
The following code is supposed to display the positive even numbers less than 12. That is, it will
output the numbers 2, 4, 6, 8 and 10. However, there is a logical error in the code. Explain what the output
of the code below will be. Then write a small program including the code below and make the necessary
changes to fix the code so that it displays what it is intended to display. Ensure that your program works
correctly. Only submit the program, not the output.
Hint: Use variable diagrams to trace the program to help you find the logical error.
int x = 1;
while (x
!= 12)
{
cout << x <<
endl; x = x +
2;
}
The following code is supposed to display the positive even numbers less than 12. That is, it will output the numbers 2, 4, 6, 8 and 10. However, there is a logical error in the code. Explain what the output of the code below will be. Then write a small program including the code below and make the necessary changes to fix the code so that it displays what it is intended to display. Ensure that your program works correctly. Only submit the program, not the output.
Distributed system is described as scalable when it remains effective when there is a
significant increase in the number of resources and the number of users. However, these
systems sometimes face performance bottlenecks.
How can these be avoided?
A University department has a file called exam marks which contains a list of
examination marks indexed by student names in alphabetical order. A student manages
to access the exam marks file. The student cannot read the file since it is encrypted.
However, they can work out the position of their own mark making use of the fact that
the students are listed in alphabetical order. The student swaps their mark with that of
the student who is always ‘top of the class’.
Write a paragraph discussing which of the security features has been breached?
5.1. [15 marks] Write a method with the following details:
5.2. [10 marks] Using the method below, write the code statements to call this method ten times with angle values of 0.500, 0.501, 0.502, 0.503, ... 0.509 and printout the values for the angle, resulting sine and cosine in a tabular format. Use a “for” looping structure.