Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Declare and Implement a class myCalculators that calculate or convert data for personal use, such as the followings. choose 1) currency convertor 2) temperature convertor
Declare and Implement a class myCalculators that calculate or convert data for personal use, such as the followings. choose
1) currency convertor
2) temperature convertor
3) GPA calculator
4) Gas price calculator
5) any other calculator that youre interested to make
C++ solutions: - myCalculators.h - declarations of the class - private data members, such as: - myName, myIntersts, - myDataInput_1, myDataInput_2 (can be an array if more than 2 inputs) - myDataOutput public methods: such as - constructor(s) - multiple overloading constructors for different purpose - setter(s). - getter(s), - convertor(s), - calculator(s) - myCalculators.cpp - implementations of the public methods of the class declared in the header file. - myTesters.cpp - main() that contains test cases to use the myCalculators class Construct a few instances (objects) of myCalculators that for diffeernt calculation / conversion purposes For each test case - Get input, via constructor or setter(s) - Display myName, and input data, via getters, - Display the result of calculation / conversion, via calculator / convertor - Organize your testing using menus, such as: 1. currency convertor 2. temperature convertor 3. GPA calculator And further level of conversations with user, to get name and input dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started