Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

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

Using a for loop create a program that will prompts the user for two numbers and then print out a list of even number in between the two given numbers(inclusive), starting from the small number to the big number

Sample Run1

Enter two numbers: 1 10

Output1: 2 4 6 8 10

Sample Run2

Enter two numbers: 9 5

Output2: 6 8


Using a switch statement, write a program that prompts the user for a numeric code and two operands. The numeric codes of 1, 2, 3, and 4 represents addition, subtraction, multiplication, and division respectively. Before division, your program should check whether the second operand is not zero. If it is, it should display “Division by zero not allowed” to the screen.

Sample Run1                        

Code: 1                            

Operand1: 5                      

Operand2: 4                        


To qualify for an International Conference for Women in Computing (ICWC) next year in Toronto, Canada a student have got a distinction (a mark greater than 75) in PRG510S, be a female, and below the age of 25. Write a simple program that receives a mark, gender, and age from the keyboard and displays a corresponding message basing on the input.

Sample Run 1:

Mark: 70

Gender: female

Age: 21

Output1: Unfortunately you do not qualify!

Sample Run 2

Mark: 83

Gender: female

Age: 21

Output2: Congratulations! You might be in Toronto, Canada next year for ICWC!

a company is planning a big sale at which they will give their customers a special promotional discount. each customer that purchases a product from the company has a unique customer id numbered from 0 to n-1.

1.andy, the marketing head of the company, has selected bill amounts of the n customers for the promotional scheme. the discount will be given to the customers whose bill amounts are perfect squares. the customers may use this discount on a future purchase. write an algorithm to help andy find the number of customers that will be given discounts?
Write a class Factors to model the factors of a integer1 ⠀ ¢ have a attribute storing the integer whose factors are to be calculated ⠀ ¢ have a boolean array attribute( factors) where each element record if that index is a factor of the integer ie factors[5] = True ⠀ ¢ have a constructor assign the stored integer attribute to a user value and create the factors array, size of this factors array? ⠀ ¢ have a method to calculate factors of stored integer and store this in mentioned Boolean array This is done by dividing the integer by the integers less than itself check for a remainder ⠀ ¢ have a method that print out the factors of stored integer to screen ⠀ ¢ have a method that takes another Factor object and prints out common factors between that object and current object. Demonstrate this class work by creating two factors objects one with a stored integer value of 28 and the other with a stored integer value of 42 Print out all and unique, common factors of both, print out if they are perfect number

Using a for loop create a program that will prompts the user for two numbers and then print out a list of even number in between the two given numbers(inclusive), starting from the small number to the big number


Sample Run1

Enter two numbers: 1 10

Output1: 2 4 6 8 10


Sample Run2

Enter two numbers: 9 5

Output2: 6 8


2.1) What are the two ways to pass arguments to a function? (2) 2.2. Write a PHP script for an array containing 5 elements (Lerato, Thabo, Mbali, Sipho, Buhle) and prints out the following : (4) 2.3. Given the PHP script in 2.2. Print out one element at a time. (2) 2.4. Write a PHP script that checks which category a student belongs to based on the average mark of test 1 and test 2. If the student’s average is greater than 50, it should print out pass and if the student’s average is less than 50, it should print out fail. (5) 2.5. Given the PHP code below. Write a PHP code that will do the following: 2.5.1. Write the HTML code that will display the form. (5) 2.5.2. The form should take input from the user using POST method and display the values in the browser.


1.In solving the given problem above, implement the algorithm you have written in

Activity Sheet 01 using Java as the programming language.


2. In writing your program, create methods to implement the operations identified

in the previous activity. Also, add a constructor that will display a greeting to the

user of the system.


Continuation of this:

https://www.assignmentexpert.com/homework-answers/programming-and-computer-science/algorithms/question-246742


We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.

Care to do it for me?

Input

A line containing two integers separated by a space.

10

Continuation of this:

https://www.assignmentexpert.com/homework-answers/programming-and-computer-science/algorithms/question-246742


1.In solving the given problem above, implement the algorithm you have written in

Activity Sheet 01 using Java as the programming language.


2.In writing your program, create methods to implement the operations identified

in the previous activity. Also, add a constructor that will display a greeting to the

user of the system.


LATEST TUTORIALS
APPROVED BY CLIENTS