Recent content by HoojaMan33
-
H
C program for calculating tax brackets(no arrays)
and how do i get multiple inputs from the user? (say up to 3) without using arrays?- HoojaMan33
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
H
C program for calculating tax brackets(no arrays)
Okay i changed it to income >= 100000 over 10k, that bug shouldn't occur anymore. It compuiles fine but now it is telling me my tax bracket is 39 and my tax is 0 lol... what is going on here?- HoojaMan33
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
H
C program for calculating tax brackets(no arrays)
Homework Statement I have an assignment with the following requirements for the functions: Tax_Bracket_Identification. This function will identify the tax bracket. This function: is of type int; has one call-by-value argument (income); uses nested if-else statements. Tax_Calculation. Will...- HoojaMan33
- Thread
- Arrays Program
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
It is not my code, it is code provided by my professor that she wants you to trace I think she wants to add complications to see how well we can understand how C functions- HoojaMan33
- Post #25
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Ok, so i am trying to hand trace some code now and here it is: #include <stdio.h> /* Global variables */ int Num4, Num5, Num6, Sum, Diff; /* Function Prototypes are declared now */ void FindDiff(int, int, int *, int *); int FindSum(int, int, int); void main(void) { int Num1, Num2, Num3...- HoojaMan33
- Post #23
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Oh ok, see the thing is my first program(the assignment which i did however long ago) didnt have this guideline for me to fulfill. This is a new assignment where i have to fulfill this condition so it is okay. my professor deducted grades off my assignment because i did not hand trace the...- HoojaMan33
- Post #21
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Ok, i finally got it to work. But i just have a question as this is a guideline for my program "The first program should not use any global variables, must pass all input parameters using call-by-value parameters and must pass all function result parameters using callby-reference parameters."...- HoojaMan33
- Post #18
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
i changed that, and still my answers are jibberish- HoojaMan33
- Post #17
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Ok thanks, its just my professor said add lots of comments so i commented practically everything in hopes she would give me full marks haha.. she also said all programs have to be in her exact lay out(so i can not have the user type in 3 values separately as she doesn't have it that way) but...- HoojaMan33
- Post #15
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Ok so i got the new program to work with pointers finally. Here it is #include <stdio.h> #include <math.h> void calc_celsius( float fahr, float *cels ); void calc_fahr( float cels, float *fahr ); void printAll(float f1, float f2, float f3, float c1, float c2, float c3); int main() { float...- HoojaMan33
- Post #13
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
ok so i adjusted my new code to be similar to my old one a bit and here it is: #include <stdio.h> #include <math.h> float calc_celsius( float fahr, float *celc ); float calc_fahr( float celc, float *fahr ); float printAll(float f1, float f2, float f3, float c1, float c2, float c3); // last...- HoojaMan33
- Post #10
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
calc_celsius is meant to convert a celsius temperature into fahrenheit, which i think i didnt clarify. That is my bad Here was my old code: (My teacher told me to use lots of comments but i think they are very annoying...) #include <stdio.h> #include <math.h> float calc_celsius( float ); //...- HoojaMan33
- Post #8
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Nvm i got it. It took me a while to understand this stuff, does anyone have any tips on where i can get definitive info about C? It feels like I am just learning by trial and error which i don't really like. Like a book for somewhat beginners(I guess i am still at intro level)?- HoojaMan33
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Ok, i have changed the typo in my code. But still I am having issues with my code compiling. #include <stdio.h> #include <math.h> float calc_celsius( float ); float calc_fahr( float ); void printAll(); int main() { float c1, c2, c3, f1, f2, f3; printf("Please type in three temperatures in...- HoojaMan33
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
H
C program using functions to convert Fahrenheit and Celsius
Homework Statement Hi i have an assignment that is asking me to convert 3 temperatures in fahrenheit to celsius and vice versa. I am very new to programming only 2 weeks in(and i learn by playing with the program) so I do not know all of the terminology / principles. I am not allowed to use...- HoojaMan33
- Thread
- celsius Convert Functions Program
- Replies: 25
- Forum: Engineering and Comp Sci Homework Help