Skip to content

Kasna1520/ECommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages