In Coral: Write a statement that calls the function PrintAge. Function PrintAge() returns nothing integer studentAge studentAge = Get next input Put "He is " to output Put studentAge to output Put " years old." to output Function Main() returns nothing Put "Student: " to output // Your solution goes here I am lost, can someone please explain, I am looking at the code already given and it looks complete to me, it looks to me like there is nothing that I need to add. Someone told me that this is the solution: Function PrintAge() returns nothing integer studentAge studentAge = Get next input Put "He is " to output Put studentAge to output Put " years old." to output Function Main() returns nothing Put "Student: " to output Put PrintAge() to output HOWEVER, the program is giving me the following Error code: Expected output of a numerical value. PLEASE EXPLAIN!!!!!
In Coral:
Write a statement that calls the function PrintAge.
Function PrintAge() returns nothing
integer studentAge
studentAge = Get next input
Put "He is " to output
Put studentAge to output
Put " years old." to output
Function Main() returns nothing
Put "Student: " to output
// Your solution goes here
I am lost, can someone please explain, I am looking at the code already given and it looks complete to me, it looks to me like there is nothing that I need to add.
Someone told me that this is the solution:
Function PrintAge() returns nothing
integer studentAge
studentAge = Get next input
Put "He is " to output
Put studentAge to output
Put " years old." to output
Function Main() returns nothing
Put "Student: " to output
Put PrintAge() to output
HOWEVER, the program is giving me the following Error code: Expected output of a numerical value.
PLEASE EXPLAIN!!!!!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps