Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I would like make to result.h file, result.cpp file, and main.cpp to run a test on something (c++) under the .h and result.cpp I want
I would like make to result.h file, result.cpp file, and main.cpp to run a test on something (c++)
under the .h and result.cpp
I want to create a function result(5).
result(5) has five parameter. that accepts number between 1 and 5.
the problem is..
I don't know how to write the function with its parameter in .h file or result.cpp
under main.cpp.
I want to call the function result(5).
test to see if result(5) == 2. where 2 is within the range of 1 and 5. if not, ask user to try again.
Step 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