Grocery Store 2

I’m kinda stuck in the second project of C. This is what my Code looks like, i kinda did what is written in the tasks. Stuck at Task 4 already… Below is my Code.

#include <stdio.h>

int main() {

int appleQuantity;
double applePrice = 1.49;
double appleReview;
int appleReviewDisplay;
const char appleLocation = ‘F’;
int dayOfWeek = 0;

appleQuantity = 23;
appleReview = 823 / 9;
appleReviewDisplay = appleReview;
dayOfWeek += 5;

if(appleQuantity < 10)
{
printf(“Sale on apples today, today only they are: $%.2f\n”, applePrice * .9);
}

// Put all your code above this and if you declare your variables using the given names and types there is no need to change any of the code below.
printf(“An apple costs: $%.2f, there are %d in inventory found in section: %c and your customers gave it an average review of %d%%!”, applePrice, appleQuantity, appleLocation, appleReviewDisplay);

}

int appleQuantity;
double applePrice = 1.49;
double appleReview;
int appleReviewDisplay;
const char appleLocation = ‘F’;
int dayOfWeek = 0;
int old_total = 823;
int new_review = 52;

appleQuantity = 23;
appleReview = (old_total+new_review)/10;
appleReviewDisplay = appleReview;

dayOfWeek += 5;

if(appleQuantity<10 || dayOfWeek % 7==3);
{
printf(“Sale on apples today, today only they are: $%.2f\n”, applePrice * .9);
}

// Put all your code above this and if you declare your variables using the given names and types there is no need to change any of the code below.
printf(“An apple costs: $%.2f, there are %d in inventory found in section: %c and your customers gave it an average review of %d%%!”, applePrice, appleQuantity, appleLocation, appleReviewDisplay);

}

this was my code and I think its correct I’m not sure so don’t take my word. You missed assigning integers to old total and new total.