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!
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
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.