How to solve this question?

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

How to solve this question?

Post by answerhappygod »

How to solve this question?
How To Solve This Question 1
How To Solve This Question 1 (76.05 KiB) Viewed 43 times
2. Consider the following program. What will be the output (a) if the value of a is 1.9 and (b) if the value of a is 3.2? Explain your answer. [6 marks] using System; public class Program { { } static void check (double gpa) if (gpa < 2) { throw new Arithmetic Exception ("You cannot graduate"); } else { } Console.WriteLine("You are graduated"); public static void Main() { double a; Console.WriteLine("Enter your GPA "); } a = double.Parse(Console.ReadLine()); M109 TMA Summer 2022 check(a); 3/6 ... ...
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply