I recently signed up for ES201 class and am confused with how to compile a program in the C language that will convert ACT scores to SAT scores.
And sorry for the false thread title posted the one for the code I need to compile.
Printable View
I recently signed up for ES201 class and am confused with how to compile a program in the C language that will convert ACT scores to SAT scores.
And sorry for the false thread title posted the one for the code I need to compile.
Welcome to the forum!
What are you confused about? The C language, the development process, or the formula in which the Stress is calculated?
What have you tried so far?
I'm having problems with the development process of how to integrate the stress equation into a code.....
Below is what I've tried so far....Being as how I am new to this concept I'm sure it need many corrections.
Code:
ACT TO SAT
/////////////
#include <stdio.h>
main() {
double ACTmath;
double ACTenglish;
double SATmath;
double SATverbal;
printf("Enter the ACT scores: ");
scanf("&lf%lf", &ACTmath, &ACTenglish);
SATmath = 12.118 + 22.096/10;
SATverbal = -22.367 + 20.763/10;
printf("SAT score is: %g\n", SATmath, SATenglish);
}
In plain English, write down what you need to do
i.e.
Get ACT score for math,
....
Use formula y = mx + c ...
print out SAT score for...
It will also help us work out what you are doing :)
The two equations used to convert ACT scores to SAT scores are below:
SAT(math) = 12.118 + 22.096(ACT math)
SAT(verbal) = -22.267 + 20.763(ACT english)
I have to use these equations in my code I'm going to compile and the results have to be rounded to the nearest multiple of ten. So to sum it up I have to compile and run a program that can convert ACT scores to SAT scores.
You are not multiplying 22.096 by ACT math in your code, you are dividing 20.096 by 10.
This might help you :)
Introduction to C - Cprogramming.com