visual basic write a program that requires a name and calls a sub procedure to display the birthday song with the name inserted into the song
EXPLAIN
HERE THE PROGRAM IS DONE WITH VISUAL BASIC(AS PER QUESTION) WITH VB 6.0 APPLICATION.
IN PART 1 THE BIRTHDAY SONG WITH THE NAME IS DISPLAYED THROUGH MESSAGE BOX
IT CAN BE DISPLAYED THROUGH LABEL ALSO. THE CODE IS GIVEN IN PART 2.
PART 1.
Private Sub Command1_Click()
' call sub procedure birthday_display
Call birthday_display(Text1.Text)
Text1.Text = ""
End Sub
'define sub procedure
Sub birthday_display(ByVal b_name As String)
Dim song As String
' store the entire song in song string
song = "Happy Birthday to You" & vbNewLine
song = song + "Happy Birthday to You" & vbNewLine
' insert the name with string b_name in the song
song = song + "Happy Birthday Dear " & b_name &
vbNewLine
song = song + "Happy Birthday to You "
'here the birthday song is displayed through message box
MsgBox song, , "happy birthday song"
End Sub
SCREEN SHOT

OUTPUT




PART 2
Private Sub Command1_Click()
' call sub procedure birthday_display
Call birthday_display(Text1.Text)
Text1.Text = ""
End Sub
'define sub procedure
Sub birthday_display(ByVal b_name As String)
Dim song As String
' store the entire song in song string
song = "Happy Birthday to You" & vbNewLine
song = song + "Happy Birthday to You" & vbNewLine
' insert the name with string b_name in the song
song = song + "Happy Birthday Dear " & b_name &
vbNewLine
song = song + "Happy Birthday to You "
'here the birthday song is displayed through label
Label2.Caption = song
End Sub
SCREEN SHOT

OUTPUT


visual basic write a program that requires a name and calls a sub procedure to display...
Create payroll using Visual basic language with this Pseudocode VALIDATE data (FuntionDataOk) INPUT employee data(Sub procedure InputData) COMPUTE CURRENT GROSSPAY (Funtion Gross_Pay) COMPUTE TOTAL EARNINGS TO DATE (Function total_Pay) COMPUTE FICA TAX (Function FICA_Tax) COMPUTE INCOME TAX WITHHELD (Function fed_tax) Adjust pay for witholding allowances if employee is single Then COMPUTE INCOME TAX WITHHELD (function TaxSingle) ELSE COMPUTE INCOME TAX WITHHELD (Function TaxMarried) END IF COMPUTE PAYCHECK AMOUNT (Function Net_Check) DISPLAY PAYROLL INFORMATION (Sub procedure ShowPayroll)
Write a script in MySQL that creates and calls a stored procedure name test. This procedure should calculate the factorial for the number 10. (To calculate a factorial, you multiply an integer less than itself.) Then, it should display a string that includes the factorial like this: The factorial of 10 is: 3,628,800.
2) Write a C++ (using visual studio) program that display the following information, each on a separate line a. your name b. c. your college major
Write a Visual Basic program to find the sum of five ages provided by the user. Use a Do While loop to prompt and read in a value for each age from the user. After the loop, display the calculated value for the sum on the monitor.
Question 4 Write a program that display the area of a triangle. The program calls the following two functions: .getBaseHeight - This function uses a reference parameter variables to accept a double arguments base and height. This function should ask the user to enter the triangle's buse and height. Input validation: base and height should be positive numbers. calArea - This function should accept the triangle's base and height as arguments and return the triangle's area. The area is calculated...
Solve using visual basic, c#, or c++
1. Write a program to do the Gauss Elimination procedure for a set of simultaneous linear equations. The input is a comma separated file of numbers. Write the program in the following phases. Ensure each phase runs correctly before you proceed to the next phase. a. Write a computer program to open a.csv file, and read the contents an augmented matrix of n columns and n +1 rows. The program should display the...
Write a C++ program IN VISUAL STUDIO CODE that will display the value and logical address of an uninitialized float array with size twenty (20) and a reference pointing to the array.
Write the condition in Visual Basic that will return the value True if: The name stored in variable lastNameString starts with the letter “A”.
Visual Basic Code.
224 Chapter 5 General Procedures In Exercises 14 and 15, rewrite the program using a Function instead of a Sub procedure. 14. Private Sub btnCalculate Click (... Handles btnCalculate.Click Dim firstNumber, secondNumber As Integer firstNumber = 4 Triple (firstNumber, secondNumber) txtResult. Text = CStr (secondNumber) End Sub Sub Triple (firstNumber As Integer, ByRef secondNumber As Integer) secondNumber = 3 * firstNumber End Sub 15. Private Sub btnCalculate Click(.) Handles btncalculate.Click Dim price, salesTaxRate, cost As Decima price...
Writing a matrix in Visual Basic Studio and not in c ++
Q3/ Write VB function/program to find the mean ( average of a 5 X 5 matrix of integers.