. I'm really close to completing it and I'm really stuck on this one situation and I don't know how to solve it. So right now I'm making a guessing game and every time you play the program tells the user how many guesses it took for them to get the answer. And what I need to do is to make sure that I get and isolate the lowest amount of guess and put it into the statistics function so that way it can print out the lowest amount of guesses that I got. Right now it isn't working and I really don't know why as it seems to be mostly adding up all the guesses until the last few. Here's my code:
#include
#include
#include
#include
void haiku(){
printf("Welcome to the game.\n");
printf("Guess a number within range.\n");
printf("Win cool prizes here.\n\n");
}
int compare(int guessiso){
int lowestvalue=0;
int biggervalue=0;
if(guessisooperand){
printf("It's lower.\n");
count++;
isolatedcount++;
}
else if(user0){
lowguess=compare(x);
x=one_game(count);
count=x;
printf("Do you want to play again?\n");
scanf("%d",&usertwo);
userthree=usertwo;
gamecount++;
}
statistics(gamecount,x,lowguess);
}
ed to design the water, wastewater, and stormwater systems for an addition to a building at our university. I have the maps of the existing systems and I am planning to use these existing systems as much as possible to avoid extra work. I have calculated a water demand and fire flow for the building. I believe I have to use mannings equation for the water pipes to determine flow, etc. I am not sure how to deal with the wastewater. I have to use the rational method for stormwater. I have attached a document which explains what I need to do overall. I need help on this ASAP as I have to present it Tuesday evening.