Get all homework scores for one student, calculate and display the sum of the scores, and...

90.2K

Verified Solution

Question

Programming

Get all homework scores for one student, calculate and displaythe sum of the scores, and also display the word “fail” if the sumis lower than 150. Note: we do not know how many homework scoreseach student will enter.

Ask the user how many homework scores there are at thebeginning. Then, ask for a homework score at a time, for as manytimes as indicated by the user.

C++

Answer & Explanation Solved by verified expert
3.7 Ratings (435 Votes)
C Codeincludeusing namespace stdint mainint n    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students