Answer to Question #255914 in Visual Basic for Mushki

Question #255914

Visual C# Studio

Using Visual Studio Create a simple application Manny Management Consulting charges P3,000 for training fee 

and P250 per person for registration fee. Create an application 

to help the accountant make a billing statement showing the 

customer's name, address, number of participants, training fee, 

registration fee and total amount due.



1
Expert's answer
2021-10-24T11:51:36-0400
using System;
using System.Collections.Generic;


namespace App
{


    class Program
    {


        static void Main(string[] args)
        {


            string[] names = new string[100];
            string[] addresses = new string[100];
            double[] trainingFee = new double[100];
            double[] registrationFee = new double[100];
            double[] amountDues = new double[100];
            double totalAmountDue = 0;


            Console.Write("Enter the number of participants: ");
            int numberParticipants = int.Parse(Console.ReadLine());


            for (int i = 0; i < numberParticipants; i++)
            {
                Console.Write("Enter customer's name: ");
                names[i] = Console.ReadLine();
                Console.Write("Enter customer's address: ");
                addresses[i] = Console.ReadLine();
                trainingFee[i] = 3000;
                registrationFee[i] = 250;
                amountDues[i] = trainingFee[i] + registrationFee[i];
                Console.WriteLine();
            }


            Console.WriteLine();
            for (int i = 0; i < numberParticipants; i++)
            {
                Console.WriteLine("Customer's name: " + names[i]);
                Console.WriteLine("Customer's address: " + addresses[i]);
                Console.WriteLine("Customer's training fee: P" + trainingFee[i].ToString());
                Console.WriteLine("Customer's registration fee: P" + registrationFee[i].ToString());
                Console.WriteLine("Customer's total amount due: P" + amountDues[i].ToString());
                totalAmountDue += amountDues[i];
                Console.WriteLine();
            }
            Console.WriteLine("The total amount due: P" + totalAmountDue.ToString());
            Console.ReadLine();
        }
    }

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS