calculateGrade
Not what you're looking for?
The function printGrade in this example {see attachment} is written as a void function to compute and output the course grade. The course score is passed as a parameter to the function printGrade. Rewrite the function printGrade as a value-returning function so that it computes and returns the course grade. (The course grade must be output in the function main.) Also, change the name of the function to calculateGrade.
Purchase this Solution
Solution Summary
Rewrite the function printGrade as a value-returning function so that it computes and returns the course grade.
Education
- BSc (Hons), University of Colombo - Sri Lanka
- MEngSc, University of Melbourne
- Certificate IV in Training & Assessment , Australian Business Council
Recent Feedback
- "Thank you!"
- "Thank you."
- "Thanks a lot for you help and support"
- "Sorry about the late payment but the assignment was sufficient and appreciated. Good work"
- "Great description! Thank you for your quick response."
Purchase this Solution
Free BrainMass Quizzes
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
C# variables and classes
This quiz contains questions about C# classes and variables.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.