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)
ahmad abuseipaa
ahmad abuseipaa el 13 de Nov. de 2019
Cerrada: John D'Errico el 13 de Nov. de 2019
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.

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by