https://github.com/fabioferrero90/js-biglietto-treno-form
Exercise #24 for Boolean Academy
https://github.com/fabioferrero90/js-biglietto-treno-form
javascript-exercises
Last synced: 8 months ago
JSON representation
Exercise #24 for Boolean Academy
- Host: GitHub
- URL: https://github.com/fabioferrero90/js-biglietto-treno-form
- Owner: fabioferrero90
- Created: 2024-11-25T14:22:40.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T15:51:51.000Z (12 months ago)
- Last Synced: 2024-11-25T16:40:56.154Z (12 months ago)
- Topics: javascript-exercises
- Language: HTML
- Homepage:
- Size: 596 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ventiquattresimo Esercizio Classe #137 - Boolean
---
Studente: Fabio Ferrero
---
# English
## Target of the project:
Write a program that asks the user:
- The number of miles to be traveled
- The age of the passenger
Based on this information he/she should calculate the total price of the travel ticket, according to the following rules:
- the ticket price is defined on the basis of kilometers (0.21 € per km)
- a 20% discount is to be applied for minors
- a 40% discount is to be applied for the over-65s.
---
# Italiano
## Obiettivo del progetto:
Scrivere un programma che chieda all’utente:
- Il numero di chilometri da percorrere
- Età del passeggero
Sulla base di queste informazioni dovrà calcolare il prezzo totale del biglietto di viaggio, secondo le seguenti regole:
- il prezzo del biglietto è definito in base ai km (0.21 € al km)
- va applicato uno sconto del 20% per i minorenni
- va applicato uno sconto del 40% per gli over 65.
---
