A My Home Programming Exercise 7 A Courses Tasks TypingGrades.cs + >- Terminal 1 using System; 2 using statie System.Console: 3 elass TypingGrades 4 { Enter number of words typed: 76 O Catalog and Study Tools Grade of F given correctly Unhandled Exception: System. IndexOutOfRangeException: Index was outside the bounds of the array. at TypingGrades. Main () (Ox00066) in (6c4bfe631e3047a 2ad7cbef62348dec1>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System. IndexOutof Ran geException: Index was outside the bounds of the array. at TypingGrades. Main () [Ox0066] in (6c4bfe631e3047a 2ad7cbef62348dec1>:0 I Rental Options La Grade of D given correctly statie void Main() 6 5 * college Success Tips //Arrays int[) words = new int[5]{0, 16, 31, 51, 76); string[) grade new string(5){"E", "D", "C", "B", "A"}; Grade of C given correctly * Career Success Tips RECOMMENDED FOR YOU Grade of B given correctly > 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 } 26 / Enter words typed Write("Enter number of words typed: "): int wordsTyped - Convert. ToInt32(ReadLine()): Grade of A given correctly 000 for(int i = 0;i< words. Length; i++) How to Answer Essay Questions O out of 1 checks passed. Review the results below for more details. if (wordsTyped > words(1) 66 wordsTyped < words(1+1]) Writeline("): Writeline("Typing (0} words per minute: Grade (1}", wordsTyped, grade[i]); Checks O Help Test Case Ineemplete Q Give Feedback 120 words per minute - Grade A Input 120 Output Enter number of words typed: Unhandled Exception: System. Indexoutof RangeException: Index was outside the bounds of the at Typingarades. Main () [Ox00066) in c6c4bfe63le3047a2ad7cbef6234E [ERROR) FATAL UNHANDLED EXCEPTION: System. IndexOutofRangeException: at Typingorades.Main () [Ox00066) in cec4bfe63le3047a2ad7cbef6234
A My Home Programming Exercise 7 A Courses Tasks TypingGrades.cs + >- Terminal 1 using System; 2 using statie System.Console: 3 elass TypingGrades 4 { Enter number of words typed: 76 O Catalog and Study Tools Grade of F given correctly Unhandled Exception: System. IndexOutOfRangeException: Index was outside the bounds of the array. at TypingGrades. Main () (Ox00066) in (6c4bfe631e3047a 2ad7cbef62348dec1>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System. IndexOutof Ran geException: Index was outside the bounds of the array. at TypingGrades. Main () [Ox0066] in (6c4bfe631e3047a 2ad7cbef62348dec1>:0 I Rental Options La Grade of D given correctly statie void Main() 6 5 * college Success Tips //Arrays int[) words = new int[5]{0, 16, 31, 51, 76); string[) grade new string(5){"E", "D", "C", "B", "A"}; Grade of C given correctly * Career Success Tips RECOMMENDED FOR YOU Grade of B given correctly > 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 } 26 / Enter words typed Write("Enter number of words typed: "): int wordsTyped - Convert. ToInt32(ReadLine()): Grade of A given correctly 000 for(int i = 0;i< words. Length; i++) How to Answer Essay Questions O out of 1 checks passed. Review the results below for more details. if (wordsTyped > words(1) 66 wordsTyped < words(1+1]) Writeline("): Writeline("Typing (0} words per minute: Grade (1}", wordsTyped, grade[i]); Checks O Help Test Case Ineemplete Q Give Feedback 120 words per minute - Grade A Input 120 Output Enter number of words typed: Unhandled Exception: System. Indexoutof RangeException: Index was outside the bounds of the at Typingarades. Main () [Ox00066) in c6c4bfe63le3047a2ad7cbef6234E [ERROR) FATAL UNHANDLED EXCEPTION: System. IndexOutofRangeException: at Typingorades.Main () [Ox00066) in cec4bfe63le3047a2ad7cbef6234
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
I keep getting out of bounds errors for an array when trying to enter a number 76 or higher for A grade. Idk how to fix it. appreciate all help
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education