Basically I'm supposed to make a spell check program and whatever the word is misspelled, it will print out the words from dictionary.txt to match the it (that's where the function will take its...
Type: Posts; User: Neotriz
Basically I'm supposed to make a spell check program and whatever the word is misspelled, it will print out the words from dictionary.txt to match the it (that's where the function will take its...
Sorry, I meant 001012012301234
I'm having trouble understanding the output of this code:
#include <stdio.h>
void a(int num);
void b(int num);
int main() {
a(6);
Allright pretty much i just need help on loop
Basically, Im supposed to make a program that involves two games: Arithmetic and Factorization. The latter is what I'm having trouble with
Here's...
I was introduce to pointer on Friday, so I'm still confused about it, but thanks. Ill take a look at it again.
I fixed the latter problem and it works fine now
for(i=1; i<= max_questions;...
So far, I've written this, under Game 1:
//This is Game 1, which is the arthimetic game
if (game==1){
printf("Would you like, 1)Addition or 2) Multiplication?\n");
...
I'm sorry, but I'm not sure what I need to fix, based on what you've posted
If it is in the main function, this is what I wrote, under Game 1:
srand(time(0));
numb_prob= 1 + max_questions;
for(i=0; i<= numb_prob; i++){
So basically, one of my homeworks is to make a program that will ask arithmetic questions and some factoring questions to the user. The functions' purpose is to calculate how long it took the user to...
Thanks for the tip mate.
How do you turn up the warnings?
With using functions, I'm supposed to find the total mass of a snowman.
For some reason, it's giving me the wrong answer:
#include <stdio.h>
#define PI 3.14159
*fscanf(kam, "%d", &numcases)
I'm having a trouble to make a program that can distinguish an "abundant" number. Here's the question:
This is what I have so far:
#include <stdio.h>
int main () {
FILE *kam;
Something else is wrong. The output says the prob. is zero.
I'm pretty sure it has something to do with increments
For the first comment, did you mean like this:
int main() {
int count, total;
int i=0;
int j=0;
double sum=0;
Here's the question:
This program is intended to calculate the probability that if a person
rolls two fair sixed-sided dice, that they will get a total of 8. This
is done by looping through all...
Thank you! I was actually looking the other way around
Thanks alot, that clears up
So if thats the case, then wouldnt the program read like this:
if (i%5 > 2)
1=5
2=5
3=5
4=5
5=0
D'oh!
Thanks for clearing up
This is what I wrote for the following hw:
Complete the program below so that when the user inputs the average speed of a car (in mph), the amount of time the car traveled (in hours), and the...
Here's a sample from my review:
7) How many times does the letter A print out in the following segment of code?
int i=0;
while (i < 20) {
i++;
Can you help me write this code?
if divisible_by_5_day and not divisible_by_25_day then go to subway
This is what I've written:
#include <stdio.h>
I have a homework that involves with mod operator.
I'm just having trouble how the program can distinguish from a divisible of 5 to 25.
here's what I've wrote:
never mind, problem solved
EDIT: the second question should be "How many spots..."