Answer to Question #257673 in Visual Basic for Random

Question #257673

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.


P3,000 for training fee

P250 per person for registration fee


1
Expert's answer
2021-10-28T01:23:10-0400
Module Module1
    Sub Main()


        Dim participantNames(10) As String
        Dim participantAddresses(10) As String
        Dim participantAmountDues(10) As Double
        Dim totalAmountDue As Double = 0


        Console.Write("Enter the number of participants: ")
        Dim np As Integer = Integer.Parse(Console.ReadLine())


        For i As Integer = 0 To np - 1
            Console.Write("Enter customer's name: ")
            participantNames(i) = Console.ReadLine()
            Console.Write("Enter customer's address: ")
            participantAddresses(i) = Console.ReadLine()
            participantAmountDues(i) = 3000 + 250
            Console.WriteLine()
        Next


        Console.WriteLine()
        For i As Integer = 0 To np - 1
            Console.WriteLine("Customer's name: " + participantNames(i))
            Console.WriteLine("Customer's address: " + participantAddresses(i))
            Console.WriteLine("Customer's training fee: P1500")
            Console.WriteLine("Customer's registration fee: P120")
            Console.WriteLine("Customer's total amount due: P" + participantAmountDues(i).ToString("N2"))
            totalAmountDue += participantAmountDues(i)
            Console.WriteLine()
        Next
        Console.WriteLine("The total number of participants: " + np.ToString())
        Console.WriteLine("The total amount due: P" + totalAmountDue.ToString("N2"))




        Console.ReadLine()
    End Sub
End Module

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