Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Note (I am a beginner) Q1. Write a C# program to compute the profit made for sel

ID: 3794521 • Letter: N

Question

Note (I am a beginner)

Q1. Write a C# program to compute the profit made for selling goldfish flakes on-line. The wholesale cost for a case of 24-boxes is $118. And the on-line price for retail sales is $9.59 per box plus a shipping cost of $1.35 per box. The on-line listing agency charges a 12% fee of the customer total payment. The payment processing cost is an additional 4% of the total payment. Compute and display the following figures for selling 25 cases of the products: the total wholesale cost for 25 cases; the total revenue for 25 cases of 24 boxes per case, the total listing cost, the total payment processing cost, and the total profit made.

Explanation / Answer

/*Here is a sample program as per my understanding of this question

Program is working fine and please modify mathematical operations in case I misunderstood the question*/

using System;

namespace ConsoleApplication
{
class GoldfishFlakes
{
int NumberOfCase;
int BoxesPerCase = 24;
int TotalBoxes;
double WholesaleCostPerCase = 118;
double TotalWholesaleCost;
double RetailCostPerBox = 9.59;
double ShippingChargePerBox = 1.35;
double TotalRetailerRevenue;
double ShippingCost;
double> double TotalOnlineLisingCost;
double PaymentProcessing = 4;
double TotalPaymentProcessingCost;
double Profit;

public GoldfishFlakes(int numberOfCases)
{
NumberOfCase = numberOfCases;
TotalBoxes = NumberOfCase * BoxesPerCase;
TotalWholesaleCost = WholesaleCostPerCase * NumberOfCase;
TotalRetailerRevenue = TotalBoxes * (RetailCostPerBox + ShippingChargePerBox);
TotalOnlineLisingCost = TotalRetailerRevenue * OnlineListingCharges / 100;
TotalPaymentProcessingCost = (TotalRetailerRevenue + TotalOnlineLisingCost) * 4 / 100;
Profit = (TotalRetailerRevenue - TotalWholesaleCost);
}
public void DisplayInfo()
{
Console.WriteLine("Total Wholesale Cost " + TotalWholesaleCost + " $ Total Revenue " + TotalRetailerRevenue
+"$ Total Listing Cost "+TotalOnlineLisingCost+"$ Total Payment Processing cost "+TotalPaymentProcessingCost
+"$ Profit "+Profit+"$");
}
}
class Program
{
static void Main(string[] args)
{
GoldfishFlakes G1=new GoldfishFlakes(25);
G1.DisplayInfo();
Console.ReadKey();


}
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote