Skip to content

Conversation

@eliotziqi
Copy link

Summary

This PR fixes the logic for the tips calculator.

Changes

  • Return type updated to float
  • Tip percentage is now selected by option number (1/2/3)

Result

The program now produces correct totals based on the selected tip option.

Reference

This fix corresponds to lesson 33 on Codédex:
https://www.codedex.io/cpp/33-tips-calculator

- Return type changed to float
- Percentage now chosen by option number (1/2/3) instead of direct percentage input
@eliotziqi eliotziqi closed this by deleting the head repository Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant