Questions: 1 835

Answers by our Experts: 1 539

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


 5. “OptionB” Method 

Create a method called “OptionB” that will print the conversion from miles to kilometres by calling “MilesToKilometers” method (defined in the item #6 below) starting at 10 miles up to 100 miles in increments of 10. Show the result on a table in the console. 

6. “MilesToKilometers” Method 

Create a method called “MilesToKilometers” 

  • Name: MilesToKilometers 
  • • Parameter: o A double representing the miles distance 
  • o A double representing the kilometers distance - this should be an "out" parameter 
  • Returns: Nothing 
  • Displays: Nothing 
  • Task: Calculates the conversion from miles to kilometers. The converted kilometer is returned as an "out" parameter 

Task 4 

Write a program that does the following for 15 

students:

 Reads in 3 marks for each student (you 

need to ensure that only valid marks 

between 0 and 100 are processed) – your 

prompt message to the user should 

indicate which number is being requested 

(see example image of output)

 Calculates and displays the highest mark 

for each student.

Finds and displays the highest mark in the class.


Which of the following is not keyword in java ?

Select one:

a. import

b. package

c. volatile

d. null


What is the output of this program?

  1.     class Output {
  2.         public static void main(String args[])
  3.         {   
  4.              int a = 1;
  5.              int b = 2;
  6.              int c;
  7.              int d;
  8.              c = ++b;
  9.              d = a++;
  10.        c++;
  11.        b++;
  12.        ++a;
  13.        System.out.println(a + " " + b + " " + c);
  14.      }  

Select one:

a. 2 3 4

b. 3 2 4

c. 3 4 4

d. 3 2 3


What is the output of the following program

class TestApp {

public static void main(String[] args) {

for (int index = 0; 1; index++) {

System.out.println("Welcome");

break;

}

}

}


Select one:

A. Welcome

B. Type mismatch error

C. Run infinite-times

D. Welcome Welcome



3.“OptionA” Method 

Create a method called “OptionA” that will print the conversion from pounds to kilograms by calling “PoundsToKilograms” method (defined in the item #4 below) starting at 200 pounds down to 50 pounds in decrements of 5. Show the result on a table in the console. 

4. “PoundsToKilograms” Method 

Create a method called “PoundsToKilograms” 

  • Name: PoundsToKilograms 
  • Parameter: A double representing the pounds 
  • Returns: A double representing the kilograms converted from pounds parameter 
  • Displays: Nothing 
  • Task: Calculates the conversion from pounds to kilograms. The converted kilogram is the returned value from the method. 


 Create a method called “OptionA” that will print the conversion from pounds to kilograms by calling “PoundsToKilograms” method (defined in the item #4 below) starting at 200 pounds down to 50 pounds in decrements of 5. Show the result on a table in the console. 


The commissioners will have their own back-office admin module/sub system to perform their day-to-day duties. Commisioners can Log/Register complaints on behalf of the public. Commissioners will be the main end-users of the system in their quest to combat online ponzi schemes, cybercrime, online fraud and scams. They use the system mainly to pull daily and monthly reports, search for complaints from the public and check POPI Act compliance of a specific financial service provider. The work of the commissioners is complemented by numerous researchers and admin assistants.All recorded findings should be peer reviewed and approved by other commissioners before the publication process can take place. The work of the commissioners is complemented by numerous researchers and admin assistants.






Identify four use cases that has Commissioner as an Actor and use your own words to construct a brief use case description for each use case you have identified.

Write a program which requests a number between 1 and 50 from the user. It must repeatedly ask the user for a number until a valid number is entered. After receiving a valid number, the program must display all the even numbers smaller than that number.

12. Create a class named 'Rectangle' with two data members 'length' and 'breadth' and two functions to print the area and perimeter of the rectangle respectively. Its constructor having parameters for length and breadth is used to initialize the length and breadth of the rectangle. Let class 'Square' inherit the 'Rectangle' class with its constructor having a parameter for its side (suppose s) calling the constructor of its parent class. Print the area and perimeter of a rectangle and a square. C#

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS