esign a class named WorkingDays. The purpose of the class is to store a value that represents number of hours worked and then convert it into number of days worked according to the formula given below: 8 working hours = 1 working day For example: v 8 hours would be equal to 1 day v 12 hours would be equal to 1.5 days v 18 hours would be equal to 2.25 days

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
icon
Related questions
Question

esign a class named WorkingDays. The purpose of the class is to store a value that represents number of hours worked and then convert it into number of days worked according to the formula given below:

8 working hours = 1 working day

For example:

v 8 hours would be equal to 1 day

v 12 hours would be equal to 1.5 days

v 18 hours would be equal to 2.25 days

Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Class
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,