Code Description A CS0649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null CS0103 The name 'IblOutput' does not exist in the current context Project ProjectedRaisesGUI Projected RaisesGUI File Form1.cs Form1.cs Line Suppression State 16 29 Active Active

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Queston #2.These two errors are frustrating. More in depth help would be appreciated! Thanks!

Toolbox
File Edit View
|-*
Form1.cs [Design]*
C# Projected RaisesGUI
100 %
HT
13
14
15
16
71°F
Cloudy
17
18
19
20
21
22
?
23
24
25
26
27
28
29
30
C
0
1
1
3:10
Git Project Build Debug
32-2-
{
E
1
SHE
W
Form1.cs* X
}
Debug
1 reference
public Form1()
{
3 references
public partial class Form1 : Form
1 Error
Test
Any CPU
InitializeComponent();
C# Interactive (.NET Framework 64-bit) Error List Output
Ready
Analyze Tools Extensions Window Help
A1 Warning
O references
private void BtnDisplay_Click(object sender, EventArgs e)
{
Error List
Entire Solution
Code
Description
A CS0649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null
CS0103 The name 'IblOutput' does not exist in the current context
Projected Raises GUI.Form1
Start
t4 101
double salary, nextYearSalary;
salary = Convert.ToDouble("textSalary.text");
next YearSalary = salary + (salary * 4) / 100;
lbloutput.text = "Next year's salary for the employee will be $26,000.00" + next YearSalary.ToString("C");
i0 Messages
V
f5
7
Build+ IntelliSense
16
Search (Ctrl+Q)
這
帽唱习习
Project
ProjectedRaisesGUI
Projected Raises GUI
Form1()
hp
matang
File
Form1.cs
Form1.cs
Projected RaisesGUI
HASTANES
>>
Search Error List
>
d4
Line Suppression State
16 Active
29 Active
Sol
Ln: 15 Ch: 9 SPC CRLF
Д Х
P
Se
Add to Source
Transcribed Image Text:Toolbox File Edit View |-* Form1.cs [Design]* C# Projected RaisesGUI 100 % HT 13 14 15 16 71°F Cloudy 17 18 19 20 21 22 ? 23 24 25 26 27 28 29 30 C 0 1 1 3:10 Git Project Build Debug 32-2- { E 1 SHE W Form1.cs* X } Debug 1 reference public Form1() { 3 references public partial class Form1 : Form 1 Error Test Any CPU InitializeComponent(); C# Interactive (.NET Framework 64-bit) Error List Output Ready Analyze Tools Extensions Window Help A1 Warning O references private void BtnDisplay_Click(object sender, EventArgs e) { Error List Entire Solution Code Description A CS0649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null CS0103 The name 'IblOutput' does not exist in the current context Projected Raises GUI.Form1 Start t4 101 double salary, nextYearSalary; salary = Convert.ToDouble("textSalary.text"); next YearSalary = salary + (salary * 4) / 100; lbloutput.text = "Next year's salary for the employee will be $26,000.00" + next YearSalary.ToString("C"); i0 Messages V f5 7 Build+ IntelliSense 16 Search (Ctrl+Q) 這 帽唱习习 Project ProjectedRaisesGUI Projected Raises GUI Form1() hp matang File Form1.cs Form1.cs Projected RaisesGUI HASTANES >> Search Error List > d4 Line Suppression State 16 Active 29 Active Sol Ln: 15 Ch: 9 SPC CRLF Д Х P Se Add to Source
5.
CHAPTER 3 Using GUI Objects and the Visual Studio IDE
4.
Exercises
Programming Exercises
where you created solutions using console input and output.
The exercises in this section should look familiar to you. Each is similar to an exercise in Chapter 2,
3.
061
1. Write a GUI program named InchesToCentimetersGUI that allows the user to input
are 2.54 centimeters in an inch.
a measurement in inches, click a Button, and output the value in centimeters. There
a 4 percent increase.
2. Write a GUI program named ProjectedRaisesGUI that allows a user to enter an
employee's salary. Then display, with explanatory text, next year's salary, which reflects
XaguxaTV?
Write a program named MoveEstimatorGUI that prompts a user for the number
of hours for a moving job and the number of miles involved in the move. After the
$150 per hour and $2 per mile.
user clicks a Button, display the moving fee which includes a base rate of $200 plus
griligin
Write a GUI program named Eggs InteractiveGUI that allows a user to input the
number of eggs produced in a month by each of five chickens. Sum the eggs, then display
the total in dozens and eggs. For example, a total of 127 eggs is 10 dozen and 7 eggs.
Write a GUI program named MakeChangeGUI that calculates and displays the
conversion of an entered number of dollars into currency denominations-twenties,
tens, fives, and ones. For example, $113 is 5 twenties, 1 ten, 0 fives, and 3 ones.
Write a GUI program named TestsInteractiveGUI that allows a user to enter scores
for five tests he has taken. Display the average of the test scores to two decimal places.
starting with JANUARY equal to 1. (Recall that an enumeration must
Create an enumeration named Month that holds values for the months of the
year,
Transcribed Image Text:5. CHAPTER 3 Using GUI Objects and the Visual Studio IDE 4. Exercises Programming Exercises where you created solutions using console input and output. The exercises in this section should look familiar to you. Each is similar to an exercise in Chapter 2, 3. 061 1. Write a GUI program named InchesToCentimetersGUI that allows the user to input are 2.54 centimeters in an inch. a measurement in inches, click a Button, and output the value in centimeters. There a 4 percent increase. 2. Write a GUI program named ProjectedRaisesGUI that allows a user to enter an employee's salary. Then display, with explanatory text, next year's salary, which reflects XaguxaTV? Write a program named MoveEstimatorGUI that prompts a user for the number of hours for a moving job and the number of miles involved in the move. After the $150 per hour and $2 per mile. user clicks a Button, display the moving fee which includes a base rate of $200 plus griligin Write a GUI program named Eggs InteractiveGUI that allows a user to input the number of eggs produced in a month by each of five chickens. Sum the eggs, then display the total in dozens and eggs. For example, a total of 127 eggs is 10 dozen and 7 eggs. Write a GUI program named MakeChangeGUI that calculates and displays the conversion of an entered number of dollars into currency denominations-twenties, tens, fives, and ones. For example, $113 is 5 twenties, 1 ten, 0 fives, and 3 ones. Write a GUI program named TestsInteractiveGUI that allows a user to enter scores for five tests he has taken. Display the average of the test scores to two decimal places. starting with JANUARY equal to 1. (Recall that an enumeration must Create an enumeration named Month that holds values for the months of the year,
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY