Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Create a TimeSpan object with parameter 3 and 4 0 ( you are passing 3 and 4 0 to your TimeSpan class constructor

1. Create a TimeSpan object with parameter 3 and 40(you are passing 3 and 40 to your TimeSpan class constructor to initialize class variables, hours and minutes)
2. print out current time - Your code should print 3h:40m
3. add 1 hour and 50 minutes to the TimeSpan object you created in question #1 and print the current time again - Your code should print 5h:30m
4. Create another TimeSpan object with parameter 5 and 35(you are passing 5 and 35 to your TimeSpan class constructor to initialize class variables, hours and minutes)
5. print out current time of your second TimeSpan object - Your code should print 5h:35m
6. add 4 hours and 100 minutes to the TimeSpan object you created in question #4 and print the current time again - Your code should print 11h:15m.
7. Call your setter to set your second object's hours to 7
8. Call your setter to set your second object's minutes 45
9. Call your getter to print your second object's hours
10. Call your getter to print your second object's minute

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

=+ How would you advise those problems be resolved?

Answered: 1 week ago