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

Create a short program that will print 123467.89 as currency using NumberFormat.



Sample Output:


I have ₱1,234,567.89 in my bank account.

Create a short program that will generate a random number from 0 to 100 while using Math.random and Math.round command.

JamEx Limited requires a program to calculate and print the commission received by a salesperson. The program should process an undetermined number of salespersons and appropriately terminate by a predefined input. The commission rate is based on two factors, the amount of sales and the class to which a salesperson belongs. The input will be the salesperson number, sales amount and class. The commission rate will be based on the following criteria:

Class=1

If sales is equal to or less than $1000, the rate is 6 percent.

If sales is greater than $1000 but less than $2000, the rate is 7 percent.

If the sales is $2000 or greater, the rate is 10 percent.


Class=2

If the sales is less than $1000, the rate is 4 percent.

If the sales is $1000 or greater, the rate is 6 percent.


Class=3 The rate is 4.5 percent for all sales amount


Class=any other value

Output an appropriate error message.


*need the answer in the form of a pseudocode and flowchart


 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 

Declare a two-dimensional array with the dimensions needed to store the data for a baseball game. It must store the data of the runs, hits and errors as well as the runs made in each inning (inning) by each team up to 9 innings. The team with the highest score wins.


You must read the data values for each team and then print the data as it appears on the stadium scoreboard, taking into account each possible play that occurs in an inning. If there is a tie they go to extraining and the homeclub in the lower part will win if the visitor is below, but if the visitor exceeds the score in this situation then the visitor wins. The extrainnig will be made up to 13 innings, and if there is still a tie, make the program end with an error message indicating that the relievers are over and therefore the game is also over, which will be decided the next day with whoever scores the first run .


Write a C++ program to calculate area and perimeter of square and rectangle using function.

Output Example should be

Enter Side of a square: 4

Enter Length and Breadth of Rectangle: 3 6


The Area of a square is: 16

The Area of Rectangle is: 18

The Perimeter of a Square is: 16

The Perimeter of a rectangle is 18


 Write a program to perform the function of a Simple Interest Calculator.


  1.  Write a program that simulates the ATM interface.

   Use a do-while loop to display 6 services to the user

   Get the user input and display submenus appropriately.


2. Write a Boolean expression that evaluates to true if a number stored in variable num is between 1 and 100 or the number is negative


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.


How can install eclipse java on my Windows 10 laptop?


LATEST TUTORIALS
APPROVED BY CLIENTS