Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Test-Vagrant-Online-Assessment

This repository contains solution to the problem given in the Test Vagrant online coding assessment.
{Name : Chandan Kumar, College: IIIT RANCHI, Year of Passing: 2023, Phone No : 7893694236, Email Id : chandan.btech.ec19@iiitranchi.ac.in}

Logic:

As we were instructed that we do not have to take input from the user, I have taken the data provided in the problem statement and stored it in array data structures. I have taken 4 arrays, an array of strings to store the name of the products, 3 array of integers to store cost, gst and quantity of the products.

I have made two fucntions , one for calculating the maximum gst amount paid by the user and second for calulating the total amount paid by the user to the shopkeeper afte all the discount and gst.

(The code file also contains output of the problem statement, It has been commented out at the bottom).

About

This repository contains a solution to the online assessment question of Test Vagrant.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages