Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
how i can writ this code
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Write a program to compare the average of students scores in M106 and M109 AOU modules.
The code should be organised as follows:
- Write a getScoreList() function that prompts the user to enter the scores list for one module and return it. (1 mark)
- Write a getAvg() function that finds and returns the average of the scores list. (1 mark)
- Write a goCompare() function that accepts the average of the first module and the second module and returns a string saying which module has the best students achievement or the two modules have the same students performance. (Do NOT use loops) (3 marks)
- Write a main scriptto do the following: (5 marks)
- Make two calls to getScoreList() function to get the score list from the user for M106 and M109.
- Make two calls to getAvg() function to average for both modules.
- Call goCompare() function to a proper string about the comparison result.
- Print the returned string.
1 comentario
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!