Write a method named graduation that takes two arguments gpa and totCreditsEarnd  Determine graduation status based on the following: A student must have completed at least 180 credits with a gap of 2.0 or greater A student who meets both requirements, display graduating A student who does not meet both requirements, display see department chair Read both values from the keyboard Ex. a() Read values from the keyboard Pass values to b() b() determine status return status to a() b(); return an integer, 1 or 0 a() if 1 is returned display graduating; if 0 is returned display see department chair

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 5E
icon
Related questions
Question

Write a method named graduation that takes two arguments gpa and totCreditsEarnd 

Determine graduation status based on the following:

A student must have completed at least 180 credits with a gap of 2.0 or greater

A student who meets both requirements, display graduating

A student who does not meet both requirements, display see department chair

Read both values from the keyboard

Ex.

a()

Read values from the keyboard

Pass values to b()

b() determine status

return status to a()

b(); return an integer, 1 or 0

a() if 1 is returned display graduating; if 0 is returned display see department chair

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Returning value from Function
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT