Answered step by step
Verified Expert Solution
Question
1 Approved Answer
it was answered but why im i still finding error in the subtotal got it thanks View Git Project Build Debug Test Analyze Tools Extensions
it was answered but why im i still finding error in the subtotal got it thanks View Git Project Build Debug Test Analyze Tools Extensions - Debug x86 Local Windows Det (Global Scope) #include #include @int main() { int numberOfPencils = 0; float priceOfPencil - e, subtotal, taxAmount, totalAmountDue; printf("Name: \t\t\tDominic Oduro "); printf(" Student Number:\t\tN01458336 "); printf(" \t\tHumber Stationary Store "); printf("Enter the number of pencils to purchase: "); scanf_s("%d", &numberOfPencils); printf("Enter the price of one pencil: "); scanf_s("%f", &priceOfPencil); subTotal = (float)numberOfPencils priceOfPencil; taxAmount = subTotal * .13; totalAmountDue = subTotal + taxAmount; printf("Number of pencils purchased: \t Xd ", numberOfPencils); printf("Price of each pencil:\t\t%.2f ", priceOfPencil), printf("Sub Total:\t\t\t%.2f ", subtotal); printf("Tax amount at 13% % HST:\t\t%.2f ", taxAmount); printf("Total amount due now: \t\t%.2f ", totalAmount Due); return ; 3 x 1 0 est Solution 5 Errors 1 Warning O Messages Build + IntelliSense
it was answered but why im i still finding error in the subtotal
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started