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
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
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 5E
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
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
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT