# Entrée
# - Demander à l'utilisateur le montant de minutes d'appel faite en journée, soirée, weekend et le montant de data utilisé
# Traitement
# - Mettre tous les valeurs à 0
# - Calculer le montant d'argent que coute le montant de minutes par jour * 25 (si plus grand que 100)
# - Calculer le coût en soirée en multipliant le montant de minutes d'appel en soirée par 0.25
# - Calculer le coût de weekend en multipliant le montant de minutes d'appel par 20 (avec un maximum de 15$)
# - Calculer le data (30$ + (1.50*data utilisée))
# - Ajouter toutes les valeurs ensembles afin de trouver le total final
# Sortie
# - Afficher un message de conclusion qui dit à l'utilisateur leur total final du forfait
minutes_jour = float(input("Combien de minutes d'appel en journée (7h à 19h) avez vous faites ?"))
minutes_soiree = float(input("Combien de minutes d'appel en soirée (19h à 7h) avez vous faites ?"))
minutes_weekend = float(input("Combien de minutes d'appel le week-end (vendredi 19h à lundi 7h) avez vous faites ?"))
data_utilise = float(input("Combien de données avez vous utilisées en Go ?"))
cout_jour = 0
cout_soiree = 0
cout_weekend = 0
cout_data = 0
if minutes_jour > 100:
cout_jour = (minutes_jour - 100) * 0.25
cout_soiree = minutes_soiree * 0.15
cout_weekend = minutes_weekend * 0.20
if cout_weekend > 15:
cout_weekend = 15
if data_utilise > 4:
cout_data = 30 + (data_utilise - 4) * 1.50
else:
cout_data = 30
cout_total = cout_jour + cout_soiree + cout_weekend + cout_data
print("Le coût total de votre forfait est de: ", cout_total, "$")
Benefits of TheCodeground Online IDE
Multi-Language Support
TheCodeground Online IDE supports C++, Java, Node.js, Python, and more, making it an incredibly versatile tool for diverse coding needs. This extensive language support allows developers to work on different projects within a single platform.
Real-Time Collaboration
Our real-time collaboration feature enables multiple developers to work on the same project simultaneously, enhancing teamwork and productivity. This feature is particularly beneficial for remote teams and pair programming sessions.
User-Friendly Interface
Designed with a clean and intuitive interface, TheCodeground Online IDE simplifies coding and debugging processes, making it accessible for users of all skill levels. The ease of use and clear navigation ensure a smooth coding experience.
Instant Code Execution
Experience fast and efficient code execution with immediate feedback in the integrated terminal. This feature helps streamline the development process, allowing developers to quickly test and debug their code.
Free to Use
Enjoy the full range of features at no cost. TheCodeground Online IDE is completely free, providing a valuable resource for developers without any subscription fees. This makes it an ideal choice for students, hobbyists, and professionals alike.
Cloud-Based Platform
As a cloud-based IDE, TheCodeground allows you to access your projects from anywhere, at any time. This flexibility ensures that you can continue coding without being tied to a specific device or location.
Customizable Environment
Tailor the IDE to your preferences with customizable themes, layouts, and extensions. This personalization ensures a comfortable and productive coding environment.
Why Choose TheCodeground Over Other Online IDEs?
TheCodeground Online IDE stands out from the competition with its comprehensive feature set, ease of use, and cost-effectiveness. Unlike many other online IDEs that require subscriptions or offer limited free plans, TheCodeground provides all its features for free. Our multi-language support, real-time collaboration, and advanced debugging tools ensure that you have everything you need for effective development. Additionally, our user-friendly interface and customizable environment make coding a pleasant experience, regardless of your expertise level. Choose TheCodeground Online IDE for a seamless, efficient, and enjoyable coding experience.