- A Class Called Pen Identifies A Double Attribute Called Kms Which Can Take Values Between 1 8 And 3 1 Write A Member Fu 1 (41.31 KiB) Viewed 26 times
A class called pen identifies a double attribute called kms which can take values between 1.8 and 3.1. Write a member fu
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
A class called pen identifies a double attribute called kms which can take values between 1.8 and 3.1. Write a member fu
A class called pen identifies a double attribute called kms which can take values between 1.8 and 3.1. Write a member function called askkms. The function returns no value; the function accepts no arguments: The function must prompt the user to enter a value for the attribute and read in the value and set the attribute. The function must ensure that input is correct which means you must incorporate a check and some kind of mechanism to ask again and again if the value given is not acceptable. You must write this function as if you were writing it in the .cpp (source) file for the class. Use the editor to format your answer