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

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:

  1. Input one integer.
  2. Make a conditional statement that contains the following conditions:
  3. If the integer is only divisible by 3, print "Divisible by 3"
  4. If the integer is only divisible by 4, print "Divisible by 4"
  5. If the integer is divisible by both 3 and 4, print "Divisible by 3 and 4"

**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;

}


  1. Create two classes—Martian and Jupiterian—that descend from Alien. Supply each with a constructor that sets the Alien data fields with values you choose. For example, you can decide that a Martian has four eyes but a Jupiterian has only two. Save the files as Martian.java and Jupiterian.java.




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: 

  • Name: SineCosine 
  • • Parameters: o A double that represents an angle in radians 
  • o A double that represents the sine to the first argument (out parameter) 
  • o A double that represents the cosine of the first argument (out parameter) 
  • Returns: Nothing 
  • Displays: Nothing 
  • Task: Calculates the sine and cosine of the first argument and assigns the result values to the second and third arguments. o The second and third arguments are decorated with "out" so that the method is able to change the actual value of the variable. 
  • o You can use Math.Sin() and Math.Cos() to calculate the Sine and Cosine 

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. 


LATEST TUTORIALS
APPROVED BY CLIENTS