Programming question. Using Visual Studio 2019 C#. Windows Forms Application.
Write the code that assigns the number 15 to the reward variable when the state variable contains the string “IL” (entered using any case) and the sales variable contains a number that is greater than 2000; otherwise, assign the number 5.
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Here a new Windows Forms Application in C# is created using Visual Studio with name "DemoWindowsForms".This application contains a form with name "Form1.cs".Below are the files associated with form1.
1.Form1.cs[Design]

2.Form1.Designer.cs
3.Form1.cs
//namespace
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
//application namespace
namespace DemoWindowsForms
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//display button click
private void btnDisplay_Click(object sender, EventArgs e)
{
//taking value of state variable
string state = txtState.Text;
//taking value of sale variable
int sale = int.Parse(txtSale.Text);
//declaring variable
int reward = 0;
//checking value of state and sale variables
if(state.ToLower()=="il" && sale > 2000)
{
//set value for reward variable
reward = 15;
}
else
{
reward = 5;
}
//display value of reward
lblResult.Text = "Reward : " + reward.ToString();
}
}
}
======================================================
Output : Run application using F5 and will get the screen as shown below
Screen 1 :

Screen 2 :Screen when reward="IL " and sale > 2000

Screen 3 :Screen when reward is not IL or sale < 2000

NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
Programming question. Using Visual Studio 2019 C#. Windows Forms Application. Write the code that assigns the...
Programming question. Using Visual Studio 2019 C#. Windows Forms Application. Write the code to display the message “Entry error” in the msgLabel when the value in the Integer units variable is less than or equal to 0. Otherwise, calculate the total owed as follows: If the value stored in the units variable is less than 20, multiply the value by $10; otherwise, multiply it by $5. Store the total owed in the total variable.
Programming question. Using Visual Studio 2019 Visual C# Write as assignment statement that multiplies the contents of the totalsales variable by the number 1.03 and then assigns the result to the totalsales variable.
Write as assignment statement that assigns WA to an existing string variable state. Visual Studio 2019. Language C#.
Programming question. Using Visual Studio 2019 Visual C# Assume a form contains two buttons named addButton and subButton. Both buttons click event procedures need to use the same variable which is a String variable named Employee. Write the appropriate statement to declare the Employee variable. Also specify where you will need to enter the statement and whether the variable is a procedure level or field level variable.
PLEASE USE VISUAL BASIC* BY VISUAL STUDIO.
Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...
Write a C# Windows Forms App code in Visual studio with a "start", "stop", "up", "down", "left" and "right" buttons and a textbox. The textbox should start printing numbers from 1 to 100 on the press of the "start" button and stop printing process immediately on the press of "stop" button. Also create a thread after stop button is pressed to allow manual input from "up", "down", "left" and "right" buttons and print up, down, left or right in the same...
Programming question. Using Visual Studio 2019 C#
Windows Form Application (.NET Framework)
Please include code for program with ALL conditions met.
Conditions to be met:
Word Problem A person inherits a large amount of money. The person wants to invest it. He also has to withdraw it annually. How many years will it take him/her to spend all of the investment that earns at a 7% annual interest rate? Note that he/she needs to withdraw $40,000.00 a year. Also there...
**This program is to be created using Visual Studio C#**Create as a Windows Form application** 1. Output a header in the console: "Program 1" 2. Next you will ask the user to enter three floats and read the values into variables. 3. Perform addition, multiplication, and division examples with the numbers entered. 4. Implicitly cast the floats into doubles. 5. Explicitly cast the floats into ints. 6. Use conversion methods to convert the floats into strings. 7. Ask the user...
**This program is to be created using Visual Studio C#**Create as a Windows Form application** 1. Output a header in the console: “This is a replacement program” 1. Output a header that states: “This is Program 5” 2. Output a thank you message: “Thank you for running the program.”
The questions below deal with Microsoft Visual Studio 2012
Reloaded, under the Visual Basic programming language. The book
ISBN number that I am using is: 978-1-285-08416-9 or the UPC code
is: 2-901285084168-1.
Question 1
Visual Basic 2012 is an object-oriented programming language,
which is a language that allows the programmer to use
____________________ to accomplish a program�s goal.
Question 2
An application that has a Web user interface and runs on a
server is called a(n) ____________________ application.
Question 3...