(Solved) : Instructor Note Correct Solution Lab Includes Newline Last Note Piano Key Frequency Say Fo Q44044648 . . .
Im getting this message how do I fix this?

Instructor note: The correct solution for this lab includes a newline after the last note. On a piano, a key has a frequency, say fo. Each higher key (black or white) has a frequency of fo *?”, where n is the distance (number of keys) from that key, and ris 20/12). Given an initial key frequency (an integer), output that frequency and the next 4 higher key frequencies Output each floating-point value with two digits after the decimal point, which can be achieved as follows: printf(“%0.21f”, yourValue); Ex: If the input is 440.0 (which is the A key near the middle of a piano keyboard), the output is. 440.00 466.16 493.88 523.25 554.37 Note: Use one statement to computer – 20/12) using the pow function (remember to include the math library). Then use that rin subsequent statements that use the formula fn = 10 * ” with n being 1,2,3, and finally 4 ACTIVITY 2.20.1: LAB. Musical note frequencies 0/10 main.c Load default template 1 include <stdio.h> LAD 2.20.1: LAB: Musical note frequencies main.c 1 #include <stdio.h> 2 #include <math.h> 4 int main(void) { double fo; double r; scanf(“%1f”, 860); (double) r – pow(2.8, (1.0/12.0)); if(fe<5) printf(“%0.21f”, f0); f@ = fer; 16 17 return ; 20) Develop mode Submit mode Run your program as often as you’d like, before submitting for gra input values in the first box, then click Run program and observe t second box Enter program input (optional) If your code requires input values, provide them here. Your program expects input Run program Input (from above) main.c (Your program) Output (shown b Program errors displayed here main.c: In function ‘main’: main.c:10:15: error: Ivalue required as left operand of assignment 101 (double) r = pow (2.0, (1.0/12.0)); Show transcribed image text Instructor note: The correct solution for this lab includes a newline after the last note. On a piano, a key has a frequency, say fo. Each higher key (black or white) has a frequency of fo *?”, where n is the distance (number of keys) from that key, and ris 20/12). Given an initial key frequency (an integer), output that frequency and the next 4 higher key frequencies Output each floating-point value with two digits after the decimal point, which can be achieved as follows: printf(“%0.21f”, yourValue); Ex: If the input is 440.0 (which is the A key near the middle of a piano keyboard), the output is. 440.00 466.16 493.88 523.25 554.37 Note: Use one statement to computer – 20/12) using the pow function (remember to include the math library). Then use that rin subsequent statements that use the formula fn = 10 * ” with n being 1,2,3, and finally 4 ACTIVITY 2.20.1: LAB. Musical note frequencies 0/10 main.c Load default template 1 include
LAD 2.20.1: LAB: Musical note frequencies main.c 1 #include 2 #include 4 int main(void) { double fo; double r; scanf(“%1f”, 860); (double) r – pow(2.8, (1.0/12.0)); if(fe
Expert Answer
Answer to Instructor note: The correct solution for this lab includes a newline after the last note. On a piano, a key has a frequ…
OR