A battery's grade is a letter, its cell count is a whole number, and its voltage has a fractional part. Store each in the right type before printing the test result.
int cells to 4, double volts to 6.5, and char grade to 'A'. Print exactly Battery A: 4 cells, 6.5 V with a newline using the matching conversions.A voltage of 6 instead of 6.5 is a clue to check both the double value and %.1f.
Match %c, %d, and %.1f to grade, cells, and volts.