Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need a C# code based off these comments. image is attached....... / * 1 . Define a variable named isTrue that stores a value of
Need a C# code based off these comments. image is attached....... Define a variable named isTrue that stores a value of whether something is true or false. Set this variable to the negative. Output this variable to the txtIsTrue textbox. Define a variable named favoriteGame that could store the name of a game. Set this variable's value to your favorite game. Output this variable to the txtFavoriteGame textbox. Define a variable named pi that can store real numbers. initialize it to a value of Output the value to txtPi. Create a control structure that will print out "That's Right" to a textbox named txtRightOrWrong if isTrue from the st problem is positive result and "Nope" if isTrue is not true. Write a loop of your choosing to print out the following numbers to txtLoop textbox: Write a nested loop to print out the following to txtNestedLoop: Call the method from number and output the result to txtMethodCall textbox. Create an array of DateTime objects. Set the first to the current date and time. Set the second to the current date. Output both dates with a space between them to txtDates. Create a method called Foo that takes an integer from txtForFoo and returns Bar the amount of times entered. ex: txtForFoo is the result is "Bar Bar Add a try catch block in the Foo method to catch the generic exception and one other exception of your choosing apply it to the method if possible. BONUS Time how long it takes from the loading of the program until the run button finishes running the first time it is clicked.
Need a C# code based off these comments. image is attached....... Define a variable named isTrue that stores a value of
whether something is true or false. Set this variable
to the negative. Output this variable to the txtIsTrue
textbox.
Define a variable named favoriteGame that could store
the name of a game. Set this variable's value to your
favorite game. Output this variable to the txtFavoriteGame
textbox.
Define a variable named pi that can store real numbers.
initialize it to a value of Output the value to
txtPi.
Create a control structure that will print out "That's Right"
to a textbox named txtRightOrWrong if isTrue from the st problem
is positive result and "Nope" if isTrue is not true.
Write a loop of your choosing to print out the following
numbers to txtLoop textbox:
Write a nested loop to print out the following to
txtNestedLoop:
Call the method from number and output the result to
txtMethodCall textbox.
Create an array of DateTime objects. Set the first
to the current date and time. Set the second to the
current date. Output both dates with a space between
them to txtDates.
Create a method called Foo that takes an integer from
txtForFoo and returns Bar the amount of times entered.
ex: txtForFoo is the result is "Bar Bar
Add a try catch block in the Foo method to catch the
generic exception and one other exception of your choosing
apply it to the method if possible.
BONUS
Time how long it takes from the loading of the program
until the run button finishes running the first time it
is clicked.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started