C: Calculate discount price based on quantity input by user.
Channel:
Subscribers:
772
Published on ● Video Link: https://www.youtube.com/watch?v=nPahYKMKsZA
Write a program that will calculate the price for a quantity entered from the keyboard, given that the unit price is $5 and there is a discount of 10 percent for quantities over 30 and a 15 percent discount for quantities over 50.
Git repo: https://github.com/pereiradaniel/beginning_c/blob/master/ch3/exercises/3_3/exercise3_3.c
Blog: https://pereiradpg.blogspot.com/2023/01/c-calculate-discount-price-based-on.html
Other Videos By Daniel Pereira
2023-01-10 | C64 gaming stream - 09/January/2023 |
2023-01-09 | C: Summing an array of integers. |
2023-01-09 | Heavenbound - C64 [50Hz] |
2023-01-08 | C: For loop off by one error demonstration. |
2023-01-08 | It's Magic 2 - C64 [50Hz] |
2023-01-07 | Pac-Land - C64 [50Hz] |
2023-01-07 | C: Looped program without using goto statement. |
2023-01-06 | Pac-Mania - C64 [50Hz] |
2023-01-06 | C: Modify a calculator program to loop until user quits. |
2023-01-05 | Super Pac-Man - C64 [50Hz] |
2023-01-05 | C: Calculate discount price based on quantity input by user. |
2023-01-04 | Jr. Pac-Man - C64 [50Hz] |
2023-01-04 | C: Program that formats date input by the user. |
2023-01-03 | Ms. Pac-Man - C64 [50Hz] |
2023-01-03 | Ms. Pac-Man - C64 [60Hz] |
2023-01-03 | C: Using scanf to assign more than one value. |
2023-01-02 | Pac-Man - C64 [60Hz] |
2023-01-02 | Pac-Man - C64 [50Hz] |
2023-01-02 | C: Ternary operator demonstration. |
2023-01-01 | Rodland - C64 [50Hz] |
2023-01-01 | C: Nested Loops. |
Tags:
C language
programming
tutorial
short programs