Review the following scenario and complete the modular designwhere the main module only controls the execution of the modules.Scenario: Professor Jones has asked you to design the logic thatwill be used to calculate the average of a students scores in aclass. Each student has three lab scores a midterm score and afinal exam score. Then based on the average the students finalgrade for the student will be calculated using the followingcriteria: 88 100: A 78 87: B 68 77: C 58 67: D Less than57: F The program should produce the following output for thestudent: Student Name: XXXXXXXXXXXXX Final Average: 80.5% FinalGrade: X The program should use separate procedures for: inputting the data; determining the Final Grade; and displayingthe results. The following is the Hierarchy Chart for the designand notice that modules should pass data between them to performthe necessary processing.