Yeah, I deserved that.
Moving on, I think I figured it out except the integer division in which I use decimals.
#include <stdio.h>
#include <stdlib.h>
#define FIRSTCHOICE 1
#define...
Type: Posts; User: Kayla Hoyte
Yeah, I deserved that.
Moving on, I think I figured it out except the integer division in which I use decimals.
#include <stdio.h>
#include <stdlib.h>
#define FIRSTCHOICE 1
#define...
aahahaha I'm really bad at programming, my apologies.
Yes i can use anything else but I have to use at least two functions. Also yes, that's what I'm looking for. How exactly would I add the...
So as a result I have to use doubles?
Yeah I want the uset input to be put as the input in either equation. Where would I put the switch statement?
Hello again.
I need help with this program. I need to connect the functions but I am having trouble doing so. The requirements are in the code. This is what I have so far:
#include...
I think I got it! thank you sir :)
That is a brilliant idea. I did so and I see that 'i' does not add one to itself. Do I need to add 'i += 1'?
#include <stdio.h>
#include <stdlib.h>
#define SIZE 50
int main()
{
int...
Thank you, that solved most of the issues.
Now the only problem is that 'i' isn't incrementing. I need it to start at zero and end at 49. Is 'i' in the incorrect place?
#include <stdio.h>...
OH, I just realized the 'scanf_s' in my post. In my dev environment I have 'scanf'. My bad.
I'm still stuck, unfortunately.
#include<stdio.h>
#include<stdlib.h>
#define SIZE 50
int main()...
I'm using Dev C++ so I use scanf, no?
The first one stops when i is less than or equal to 49. The second one stops at 49 also?
.
#include<stdio.h>
#include<stdlib.h>
#define SIZE 50
int main()
{
Thank for being honest. Unfortunetly I have to use a array for this. I (think) I have addressed some of your issues in my code in my last post.
using #define SIZE 50 does not set 50 to each SIZE? And I'm sorry but how would another assignment exactly work? Thanks.
#include<stdio.h>
#include<stdlib.h>
#define SIZE 50
int main()
{
I thought about your comments and came up with this:
#include<stdio.h>
#include<stdlib.h>
#define SIZE 50
int main()
{
Hi, for this assignment I must allow the user to enter numbers into an array. When the array size exceeds 50 or when the user enters -999, the array will be displayed.
The problem: The sentinel...
That did it. Thank you.
How does one change the documentation to C11 or C9? I am using Dev C++.
Hello quick update. I decided to re-haul my code. I now have trouble finding how to calculate the smallest and largest number from stored variables.
#include <stdio.h>
#include <stdlib.h>...
Here is the assignment: Youneed to write a menu driven program.
Theprogram allows a user to enter five numbers and then asks the user to select achoice from a menu. The menu should offer following...
Thank you for the resources.
Ah right the semicolon! Plus you are right, it does nothing. So I was thinking of removing it for an if statement?
if(number == -1){
printf("\nChoose a selection 1-4 from the menu:\n");
...
Hi and ty for replying. I intended for it to happen this way. The user enters number and presses enter. They repeat this five times before typing -1 to stop. Then the menu shows up.
Yes, it's me again. (hello)
My program will not stop using -1 even though it is the sentinel value. Please help me locate my mistakes. Otherwise, I believe everything else is correct. We just...
I got it to work!!!! :D
Adding the double part was the solution. Thank you so much for your help and patience guys. I think planning it out first by hand will help me a lot.
(I should note that I am using Dev-C++)
I fixed some of the issues I made. I tested and saw that when I put in two, three, four numbers that are passing it displays the percentage correctly (at...
I think I understand userxbw, and thank you Matticus. So passingGrades will start at 0 and so will failingGrades. total is failingGrades added to passingGrades. percentage is passingGrades divided by...