Assume a developer writes the following class that calculates an item's retail price based on the wholesale cost and markup percentage. Create a unit test to test this class. You may use the source code in any language, pseudo code, or natural language (statements).
public class RetailPriceCalculator {
public static double calculateRetail(double wholesale, double markUp) {
double retail = wholesale * (1 + markUp / 100);
return retail;
}
}
via email: mhassnainjamil@gmail.com
via WhatsApp: +92-324-7042178
via skype: hassnainjamil1
public class RetailPriceCalculator {
public static double calculateRetail(double wholesale, double markUp) {
double retail = wholesale * (1 + markUp / 100);
return retail;
}
}
CONTACT DETAILS
For any other questions or other tasks please feel free to contact mevia email: mhassnainjamil@gmail.com
via WhatsApp: +92-324-7042178
via skype: hassnainjamil1
Comments
Post a Comment