18. You have computed a stress value by a large building in VBA and want to disp
ID: 3570787 • Letter: 1
Question
18. You have computed a stress value by a large building in VBA and want to display it on the worksheet Sheet 10 in Call B10 with the number or 18390.7 and the units of in-lbs per foot. Write the command to display the mons. 9. The range C1: C5 has been selected, and a Fill Down is about to be executed with the formula shown in cell C1. Upon completion, what will he the value displayed in cell C5? . Write the Visual Basic code required to describe the following conditions: If y = 1 set x = 10. If y = 2 Set x=5. If y any value other than 1 or 2 set x = 0. Hint: Consider using If... Then, ElseIf Then,Else statements.Explanation / Answer
Module decisions Sub Main() 'local variable definition ' Dim y As Integer = 1 Dim x As Integer = 1 ' check the boolean condition using if statement If (y = 1) Then x=10; Else If(y=2) Then x=5; End If Console.WriteLine("value of x is : {0}", x) Console.ReadLine() End Sub End Module
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.