Average of given numbers
You are given space-sparated integers as input. write a program to print the average of the given numbers
INPUT
The first line of input contain space-seperated integer
OUTPUT
the output should be a float value rounded up to two decimal places
1 0 2 5 9 8
4.17
Compute the total quiz and average quiz of three (3) scores. Determine if the average score is greater than or equal to 70, if TRUE , display Remarks is “ PASSED” otherwise display “FAILED”.
Using dosbox and tasm. Create an assembly program that would check if the input character is a numeric character. alphabet (letter) or a special character.
HINT: Each character has a corresponding decimal and hex values in the ASC table. Use ASCII table.
Using dosbox and tasm. Create an assembly program that would check if the input character is a numeric character. alphabet (letter) or a special character.
HINT: Each character has a coresponding decimal and hex values in the ASC table. Use ASCII table
5. Write a query that will return all the rentals placed between the following dates “2021-08-
01” AND “2021-10-30”.
6. Write a query that selects all the rentals placed by Bud Barnes.
7. Write a query that displays all the returns for the car make Toyota.
21; 22; 23 2022
© The Independent Institute of Education (Pty) Ltd 2022
Page 11 of 14
8. Write a query that counts the number of rentals that were placed for the car make
Hyundai.
9. Write a query to update the Model of the car with the CarNo FOR001 from “Fiesta” to
“Focus”.
10. Write a query that will display the CarNo, Driver Name, Rental Fee, Start Date, End Date
and Availability of all available rentals.
11. Write a query that will show a list of the available car makes in the database use the
DISTINCT command.
Declare the Person superclass as abstract. Add this abstract method to the class:
public abstract void eat(String food);
Both the Student and Employee class inherit from abstract superclass Person, and provides an implementation for eat() which displays that the student or employee is eating a certain food.
(Note what happens if you don’t implement eat().)
Create an interface called StudentInterface. This interface has the following abstract method:
public void study(String subject);
The Student class implements this interface, and provides an implementation for study() which displays that the student is studying a certain subject.
(Note what happens if you don’t implement study().)
Create an interface called EmployeeInterface. This interface has the following abstract method:
public void workingOn(String task);
The Employee class implements this interface, and provides an implementation for workingOn() which displays that the employee is working on a certain task.
(Note what happens if you don’t implement workingOn().)
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