You've learned integers, floats, and all seven arithmetic operators. Now put them to work.
A ticket system tracks sales for a concert. You've been given the total revenue and the ticket price. Your job is to figure out how many tickets were sold and how much money is left over after paying out a fixed venue fee.
Your tasks
Given these starting values:
revenue = 1375
ticket_price = 12
venue_fee = 200
1. Calculate how many complete tickets were sold and store it in tickets_sold
2. Calculate the remainder after dividing revenue by ticket price and store it in leftover
3. Calculate the profit (revenue minus venue fee) and store it in profit
4. Print all three values, one per line
Expected output
114
7
1175
Constraints
- Use
// for the tickets sold calculation — you need a whole number
- Use
% for the leftover calculation
- No external libraries