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

Write a program that will be able to classify fruits based on their (1) shape, (2) color and (3) texture. We have the following assumptions:


shape can assume any of the two values, namely: 0 to represent a round shape, 1 to represent an oblong shape


color can assume any of the three values, namely: 0 to represent a green color, 1 to represent a yellow color, 2 to represent a red color, and 3 to represent an orange color


texture can assume any of the two values, namely: 0 to represent smooth texture and 1 to represent a rough texture


2. The program should be able to determine the following fruits with the following characteristics:



apple: round shape, red color, smooth texture


banana: oblong shape, yellow color or green color, smooth texture


orange: round shape, orange color, smooth texture


jackfruit: oblong shape, green color, rough texture


write the program to replace all the elements of a guven value with new value


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.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS