Help! Got to procude the following code to replicate the sieve of Eratosthenes. Basically the program looks at numbers 0-100 and filters out the prime numbers. The basic algorithm is cross out...
Type: Posts; User: JFK
Help! Got to procude the following code to replicate the sieve of Eratosthenes. Basically the program looks at numbers 0-100 and filters out the prime numbers. The basic algorithm is cross out...
Hi folks, this has got me stumped.
input: (from a file called ch7d) Output:
1 0 student ssessment attempt report
1 0
1 1 group 1
1 1 none 2
1 2 one 2
5 2 ...
I have a value assigned to a variable called x (float) of 12.56.
I have another int variable called y. If I want to output 12 (from the 12.56) i can do:
y = x;
printf("%d", y); /*truncates the...
Thanks for the response. I've looked at the code and I have pasted it into Borland 3 but I'm not sure how to run it.
Also, what is the '*argv[] ' syntax all about!? I haven't got as far as...
This is driving me nuts!! I'm still getting a redeclaration error..... here is my latest code (thanks for the help, it's really useful; I'm still new to C).
#include<stdio.h>
#include<conio.h>
...
Thanks for replying; I have changed the int to char for both the variables you mentioned, unfortunately I'm getting the same error message?
From the input file (mine is called ch10b) containing the following (the first digit representing the number sunny days
in a month, the second the number of rainy days):
4 9
3 12
6 12
8 8
12...
Cracked it.
Thanks Salem, I've been spending so long on this that I put a 3 instead times the item to the power of 3! Doh.
The program is still not giving me a combined total however, it's merely reporting...
Sorry, the JFC post below was meant to be me, if anyone is kind enough to reply can they do it through this one please? Thanks.
Hi folks, big one this, any help greatly appreciated!
Basically the program reads the input file and then outputs the results (meant to be student data). The first digit represents the student...
I need to output the following to a screen:
SUN MON TUE WED THU FRI SAT
1 2 3 4
5 6 7 8 9 10 11
12 13 14 ...
Need Help!!!
Not sure if I'm in the right place but here goes anyway. I have a project in college to design a circuit for 2 disco lights alternating between 4 colours. I understand the algebra...
I need help!!
We have produced an application in work using VB forms for memebers of staff to use. Our aim is to output the text from within certain fields to a .tif image. We're stumped at the...
I have to write a programme to show the amount of elapsed time between two given times, for example, start time 14:59:59 - end time = 15:00:00. Elapsed time = 0:0:1. I know it is to do with the mod...