Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercises 5.1.18 SEMESTER GRADE Write a program that requests the numeric grades on a midtermexam and a finalexam and then uses a Function procedure to

Exercises 5.1.18 SEMESTER GRADE

Write a program that requests the numeric grades on a midtermexam and a finalexam and then uses a Function procedure to assign a semester grade (A, B, C, D, or F). The finalexam should count twice as much as the midtermexam, the semester average should be rounded up to the nearest whole number, and the semester grade should be assigned by the following criteria:

Use a function called Ceil that rounds non-integer numbers up to the next integer. The function Ceil can be defined by Ceil(x)=Int(x).

image text in transcribed

Partial Hints: (Challenging) Private Sub btnDetermine_Click(...) Handles btnDetermine.Click Dim midtermm, final As Double midtermm = CDbl(txtMidTermm.Text) final = CDbl(txtFinal.Text) txtSemesterGrade.Text = SemesterGrade(midtermm, final) End Sub Function SemesterGrade(midTermm As Double, final As Double) As String ' xxx fill in the missing codes End Function Function Ceil(num As Double) As Double Return -Int(-num) End Function

Figure 5.8 Possible outcome of Exercise 18. Grade Midterm exam: Final exam: 94 Determine Semester Grade Semester grade: A

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Identify cultural barriers to communication.

Answered: 1 week ago