Finally got it to work. Very frustrating though. Thank you very much Sir Claudiu. I followed the instructions you gave me on declaring an array of 5 doubles, and read the array [count] in the while...
Type: Posts; User: BigO
Finally got it to work. Very frustrating though. Thank you very much Sir Claudiu. I followed the instructions you gave me on declaring an array of 5 doubles, and read the array [count] in the while...
Sorry about the comments. That's my Instructor. He wants each line with comment.
I tried that, may be I'm not putting the right code in the right place. Please, I need help.
Yes, I removed the semi-colon. Here's what I have so far.
#include <stdio.h> /* Header file */
int main (void) /* Main function for...
Any help, please?
I removed it, but nothing happen yet.
I'm kind of stuck here. I need help
while (array[count] < 5);
#include <stdio.h> /* Header file */
int main (void) /* Main function for the program */
{
int Store_No;
int count;
double array[5]; ...
I'm still trying to work this out, but I'm having a little trouble with it.
Yes Sir! Thanks for the other day. Yes, I'm try to have the user input 5 prices , and add it up.
Please I need help on this. I'm trying to allow 5 entries of items for a store, compute the sales tax, and total the sales amount. Also trying to validate the input for negative amount (less than...
Thank you! I'm so happy. May the Lord continue to bless you, and give you more wisdom and knowledge. You make my day. Now I can go and take care of some other things. Thanks.
You are awesome. Thank you so much. It works well. I just need to figure out the code for, when the user input combination of numeric and non-numeric instead of just numeric. That way it will give an...
When I add "if" code, it still won't exit the program immediately when I hit 4. I add it in the switch also, is the same. Here is the code:
#include <stdio.h> /*...
Thanks. It works now when I use %d to scanf store_no, and I add a "while(1) {} before the menu selection. I'm just trying to figure out when I press 4, it will exit instead of asking for store no....
When I input the purchase amount, is not displaying the sales tax, and the total amount for the store No. selected. Thanks for your time.
/*Purpose: Check user's input for validity.
Have the user select from the menu which store to use for tax calculation.
Calculate and display the tax amount for the store selected,
and the...