Skip to content

Priyank31/Cognitree-Task-Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cognitree-Task-Solution

Steps to Follow:

  1. Open the terminal
priyank@priyank-HP-Laptop-15-bs0xx:~$
  1. Change the directory where all the files are downloaded
priyank@priyank-HP-Laptop-15-bs0xx:~$ cd /github/Cognitree-Task-Solution
priyank@priyank-HP-Laptop-15-bs0xx:~/github/Cognitree-Task-Solution$
  1. Execute 'javac Solution.java' in the terminal to compile the files.
priyank@priyank-HP-Laptop-15-bs0xx:~/github/Cognitree-Task-Solution$ javac Solution.java
priyank@priyank-HP-Laptop-15-bs0xx:~/github/Cognitree-Task-Solution$ 
  1. Execute 'java Solution' in the terminal to run the program.
priyank@priyank-HP-Laptop-15-bs0xx:~/github/Cognitree-Task-Solution$ java Solution
Enter the Origin: 
  1. Enter the required input.
priyank@priyank-HP-Laptop-15-bs0xx:~/github/Cognitree-Task-Solution$ java Solution
Enter the Origin: US
Enter No. of Cars: 5
The average horsepower of Cars in origin US is 118.01181
1) Name :Pontiac Grand Prix   Origin :US   Horsepower :230.0
2) Name :Pontiac Catalina   Origin :US   Horsepower :225.0
3) Name :Buick Estate Wagon (sw)   Origin :US   Horsepower :225.0
4) Name :Buick Electra 225 Custom   Origin :US   Horsepower :225.0
5) Name :Chevrolet Impala   Origin :US   Horsepower :220.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages