Hello
I was given an assignment by my teacher to help us with pointers and functions before our next test. The problem is that I am having huge issues understanding these topics.
I have attached the assignment and all that I have coded out so far. Any help, explanations, links to tutorials would be greatly appreciated.
Thank you.
void explainProgram(void) {
Serial.print("--Amperage calculator--\n\n");
Serial.print("This program calculates the amperage\nthrough a resistor given voltage and resistance.\n\n");
}
void getValues(float *ohms, float *volts) {
}
float doCalculations(float res, float *volt) {
}
void displayAnswer(float amps) {
}
void setup() {
Serial.begin(9600);
explainProgram();
}
void loop() {
}
Assignment1.pdf (51.3 KB)