{"size": 690, "ext": "js", "max_stars_repo_path": "Basic/preparationForExam/bookPrograming.js", "max_stars_repo_name": "MitkoDG/mySoftUniJorney", "max_stars_repo_stars_event_min_datetime": "2021-12-08T09:21:07.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-10T07:27:23.000Z", "max_issues_repo_path": "Basic/preparationForExam/bookPrograming.js", "max_issues_repo_name": "MitkoDG/mySoftUniJorney", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Basic/preparationForExam/bookPrograming.js", "max_forks_repo_name": "MitkoDG/mySoftUniJorney", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.6, "max_line_length": 87, "alphanum_fraction": 0.6927536232}
function programmingBook(input) {
 
    let priceForOnePage = Number(input[0]);
    let priceForOneKOrica = Number(input[1]);
    let generalDiscont = Number(input[2])
    let sumForDisiner = Number(input[3]);
    let procentForTeam = Number(input[4]);

    let startSumForPrint = (priceForOnePage * 899) + (priceForOneKOrica * 2);


    let discont = startSumForPrint - (startSumForPrint * generalDiscont / 100);

    let moneyForDisiner = discont + sumForDisiner;

    let teamProcentProfit = moneyForDisiner - (moneyForDisiner * procentForTeam / 100);

    console.log(`Avtonom should pay ${teamProcentProfit.toFixed(2)} BGN.`);
}

programmingBook(["0.05",
"1.20",
"40",
"19.99",
"20"]);