Computer Science, asked by richasingh10c2005052, 3 months ago

The result is thus available on the Terminal Window (as shown).
Prog. 2
Write a program by using a class with the following specifications:
Class name
: Profit Loss
Data members/instance variables: int cp, sp
Methods:
Profit Loss o
: default constructor to initialize cpsp
void input (int a. int b) : to assign cp with m and sp with n
void display 0
: to calculate and display either profit percent
(pp) or loss percent (Ip)​

Answers

Answered by siddharthsundakar
0

Answer:

hiiiiiiiiii8iiiiiiiii

Similar questions