and year), an exam time (hour and minutes), and an exam max marks. It should also include 2 constants which are the exam type and exam order. The exam type value may be one of the constant static fields ("Lab Exam", "Midterm Exam", "Final Exam") or any other val
and year), an exam time (hour and minutes), and an exam max marks. It should also include 2 constants which are the exam type and exam order. The exam type value may be one of the constant static fields ("Lab Exam", "Midterm Exam", "Final Exam") or any other val
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
Related questions
Question
100%
in java
2.4. Problem
Create a class called Exam that a teacher might use to represent an exam for a course
taught in the university.
An Exam should include different information as instance variables – an exam date
(day, month, and year), an exam time (hour and minutes), and an exam max marks. It
should also include 2 constants which are the exam type and exam order.
The exam type value may be one of the constant static fields ("Lab Exam", "Midterm
Exam", "Final Exam") or any other value. The exam order (1, 2, 3, etc.) is set for lab
exams and midterms by using separate static counters, for other exam types is set to 0.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
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
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning