Create an assembly program to that accepts 2 single digit number (0-9) num1 and num2.
If num is greater that then display "Num1 is greater than Num 2" while it num? is lesser than then display "Num! is less than Num2 otherwise display "Num1 and Num2 are equal" Add another instruction for invalid input (alphabets, symbols
Q ⊂ R+
a. true
b. false
Admission Price - A particular zoo determines the price of admission based on the age of the guest. Guests 2 years of age and less are admitted without charge. Children between 3 and 12 years of age cost P140.00. Seniors aged 65 years and over cost P180.00. Admission for all other guests is P230.00. Create a program that begins by reading the ages of all of the guests in a group from the user, with one age entered on each line. The user will enter a blank line to indicate that there are no more guests in the group. Then your program should display the admission cost for the group with an appropriate message. The cost should be displayed using two decimal places.
Write a program that initially requests
the user to enter the number of students
in a class. The program then proceeds to request the user to enter the marks (double) of these
students; these are to be inserted into an
array. Once all the marks have been entered,
your program shall have and use the below
functions
1. public static double sum(int [] array). Calculate & return sum of all marks.
2. Public static double[] sort(int []
array). Sort array containing marks.
3. public static double max(int []
array). Return highest mark.
4. public static double min(int [] array). Return lowest mark.
Write a program that initially requests
the user to enter the number of students
in a class. The program then proceeds to request the user to enter the marks (double) of these
students; these are to be inserted into an
array. Once all the marks have been entered,
your program shall have and use the below
functions
1. public static double sum(int [] array). Calculate & return sum of all marks.
2. Public static double[] sort(int []
array). Sort array containing marks.
3. public static double max(int []
array). Return highest mark.
4. public static double min(int [] array). Return lowest mark.
mean median mode assignment question
input:1
Mean: 4.67
Median: 4.5
Mode: 2
input:2
Mean: 5.45
Median: 3
Mode: 2 3
not getting desired output for input1 in median case, please debug the code
Write a program that initially requests
the user to enter the number of students
in a class. The program then proceeds to request the user to enter the marks (double) of these
students; these are to be inserted into an
array. Once all the marks have been entered,
your program shall have and use the below
functions
1. public static double sum(int [] array). Calculate & return sum of all marks.
2. Public static double[] sort(int []
array). Sort array containing marks.
3. public static double max(int []
array). Return highest mark.
4. public static double min(int [] array). Return lowest mark.
Write a program that initially requests
the user to enter the number of students
in a class.The program then proceeds to request the user to enter the marks (double) of these
students; these are to be inserted into an
array. Once all the marks have been entered,
your program shall have and use the below
functions
1. public static double sum(int [] array). Calculate & return sum of all marks.
2. Public static double[] sort(int []
array). Sort array containing marks.
3. public static double max(int []
array). Return highest mark.
4. public static double min(int [] array). Return lowest mark.
Hallow Inverted Full Pyramid - 1
Given the number of rows N, write a program to print the hallow inverted full pyramid pattern similar to the pattern shown below. * * * * * * * * * * * *
Input The input will be a single line containing a positive integer (N).
Output The output should be N rows containing the asterisk(*) character in the hollow inverted full pyramid pattern. Note: There is a space after each asterisk(*) character.
Explanation For example, if the given number is 5, the pattern should contain 5 rows as shown below * * * * * * * * * * * * Sample Input 1 5 Sample Output 1 * * * * * * * * * * * *
write a program to print numbers from 1 to N in each row forming a square pattern of N rows and M columns