Answer and Explanation:
if all your program works fine, without any compilation error, then open command prompt and navigate to the folder "cs252/Assignments/guess" where you have all the header and c++ files stored.
type to generate "program" executable file :- g++ -o program guess.cpp
To execute the so obtained executable:- ./program
Your computer will shut down I think
Answer:
algorithm should:
--Alternate between player 1 and player 2
--Ask the player how many numbers they would like to choose, ensuring that this is between 1 and 3
Answer: d) Illegal and unethical
Explanation: Illegal term is used for the something that is incorrect according to regulation.The legal factor is not present in this type of activity and thus it is judged by the regulations as unauthorized act and can be concluded as act of crime .
Unethical term defines that something is incorrect in a moral way and the person doing the unethical activity lacks the principles in his/her nature.
Jared is also performing illegal act by selling the piracy antivirus package of software .The act is unethical as well because Jared is lacking the basic morals e.g.-stealing is offensive and incorrect act.Thus the correct option is option(d).
Other options are incorrect because the act done by Jared is against the conduct which is not legal and ethics are moral features which is not present in Jared's act.