There are multiple java basic questions. 1)Print a message output: Hello World!!!
2)print numbers from 1 to 10
output: 1 2 3 4 5 6 7 8 9 10
3)print the numbers in reverse
output: 10 9 8 7 6 5 4 3 2 1
4)print the odd numbers between 1 to 20
output: 1 3 5 7 9 11 13 15 17 19
5)Reverse the left and right numbers like You must use only a loop input 9 output 4 3 2 1 5 9 8 7 6
input 13 output 6 5 4 3 2 1 7 13 12 11 10 9 8
output:
10 5 4 3 2 1 6 7 8 9 10
- Create a student class -create 5 student objects and store it in a proper data structure
- find the average marks of the students
output:
Average Marks: 86
- implement classes for a Library There are diffrent type of books are available in the library like Printed books, E books, and Audio books
You must use inheritance, polymorphism, encapuslation...
output:
Java Programming is a Printed Book Data Science is an E-Book Machine Learning is an Audio Book
- implement classes for the given scenario:
- A retail store which can store,edit and delete multiple products like fruits, vegetables, grocery, etc..
- display the avilabe products like price, name, quantity
output:
Available Products: Apple - Price: 2.5 Quantity: 50 Tomato - Price: 1.2 Quantity: 100 Rice - Price: 3.0 Quantity: 30
day01 works completed