edRaisesGUI 17 18 19 20 21 22 23 24 25 26 27 280 29 #1 12 13 4 5 Q 81 1 reference public Form1() g Projected RaisesGUI.Form1 InitializeComponent(); tion 1 Error A 2 Warnings 01 Message 97 Build lotelliSense ode Description 50649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null 50149 Method name expected E1006 Naming rule violation: These words must begin with upper case characters: btnDisplay_Click 50219 The variable 'textBox' is assigned but its value is never used . we (.NET Framework 64-bit) Error List Output 0 references private void btnDisplay_Click(object sender, EventArgs e) {. double salary, next Year Salary; object textBox = null; salary = Convert.ToDouble("text" (25,500)); next YearSalary = (salary + (salary 4) / 100); lbloutput = "Next year's salary for the employee will be $26,608.00" + next YearSalary. ToString("C"); - Project Projected RaisesGUI Projected Raises GUI ProjectedRaisesGUI ProjectedRaisesGUI Form1.Designer.cs -btnDisplay_Click(object sender, EventArgs e) File Form1.cs Form1.cs Form1.cs Form1.cs Ln: 28 Ch: 40 Search Error List SPC Line Suppression State 16 Active 28 Active 23 Active 27 Active CRE P

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

#2. Don't understand the errors and how to fix them? Help would appreciated!

Toolbox
File
T
Form1.cs [Design]*
C# Projected RaisesGUI
100 %
Error List
Edit View Git Project Build Debug
㊣ ·口
V
19-2
17
18
19
20
21
22
71°F
Cloudy
23
24
25
26
27
289
29
30
31
32
33
34
35
Form1.cs* X
A 1
1 reference
public Form1()
{
Debug
4
InitializeComponent();
1 Error
WRIGH
✓ ✓
Test Analyze
Any CPU
A2 Warnings
C# Interactive (.NET Framework 64-bit) Error List Output
Ready
Tools
Extensions
Start - -
Projected RaisesGUI.Form1
O references
private void btnDisplay_Click(object sender, EventArgs e)
{
double salary, next Year Salary;
object textBox
null;
salary Convert.ToDouble("text" (25,500));
nextYearSalary = (salary + (salary * 4) / 100);
lbloutput = "Next year's salary for the employee will be $26,000.00" + next YearSalary.ToString("C");
Entire Solution
Code Description
A CS0649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null
X CS0149 Method name expected
Project
ProjectedRaises GUI
Projected RaisesGUI
IDE1006 Naming rule violation: These words must begin with upper case characters: btnDisplay_Click Projected Raises GUI
A CS0219 The variable 'textBox' is assigned but its value is never used
Projected Raises GUI
5
Window
1 Message 97 Build+ IntelliSense
Help
Search (Ctrl+Q)
每日美风习习习证
Copp
A
P
File
Form1.cs
Form1.cs
Form1.cs
Form1.cs
btnDisplay_Click(object sender, EventArgs e)
\
Projected RaisesGUI
Form1.Designer.cs*
Ln: 28
(
Ch: 40
Search Error List
SPC CRLF
- 4X
Line Suppression State
16
Active
28
Active
23 Active
27 Active
▶
Sol
Prop
Add to Source Control -
Transcribed Image Text:Toolbox File T Form1.cs [Design]* C# Projected RaisesGUI 100 % Error List Edit View Git Project Build Debug ㊣ ·口 V 19-2 17 18 19 20 21 22 71°F Cloudy 23 24 25 26 27 289 29 30 31 32 33 34 35 Form1.cs* X A 1 1 reference public Form1() { Debug 4 InitializeComponent(); 1 Error WRIGH ✓ ✓ Test Analyze Any CPU A2 Warnings C# Interactive (.NET Framework 64-bit) Error List Output Ready Tools Extensions Start - - Projected RaisesGUI.Form1 O references private void btnDisplay_Click(object sender, EventArgs e) { double salary, next Year Salary; object textBox null; salary Convert.ToDouble("text" (25,500)); nextYearSalary = (salary + (salary * 4) / 100); lbloutput = "Next year's salary for the employee will be $26,000.00" + next YearSalary.ToString("C"); Entire Solution Code Description A CS0649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null X CS0149 Method name expected Project ProjectedRaises GUI Projected RaisesGUI IDE1006 Naming rule violation: These words must begin with upper case characters: btnDisplay_Click Projected Raises GUI A CS0219 The variable 'textBox' is assigned but its value is never used Projected Raises GUI 5 Window 1 Message 97 Build+ IntelliSense Help Search (Ctrl+Q) 每日美风习习习证 Copp A P File Form1.cs Form1.cs Form1.cs Form1.cs btnDisplay_Click(object sender, EventArgs e) \ Projected RaisesGUI Form1.Designer.cs* Ln: 28 ( Ch: 40 Search Error List SPC CRLF - 4X Line Suppression State 16 Active 28 Active 23 Active 27 Active ▶ Sol Prop Add to Source Control -
CHAPTER 3 Using GU Objects and the Visual Studio IDE
Exercises
Programming Exercises
were 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,
are 2.54 centimeters in an inch.
a measurement in inches, click a Button, and output the value in centimeters. There
LWrite a GUI program named Inches To CentimetersGUI that allows the user to input
siduol
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
44 percent increase.
3.
Write a program named Move EstimatorGUI that prompts a user for the number
$150 per hour and $2 per mile.
of hours for a moving job and the number of miles involved in the move. After the
user clicks a Button, display the moving fee which includes a base rate of $200 plus
griliunco.s
Write a GUI program named Eggs InteractiveGUI that allows a user to input the
mber of eggs produced in a month by each of five chickens. Sum the eggs, then display
Cotal in dozens and eggs. For example, a total of 127 eggs is 10 dozen and 7 eggs.
a GUI program named MakeChangeGUI that calculates and displays the
on of an entered number of dollars into currency denominations-twenties,
and ones. For example, $113 is 5 twenties, 1 ten, 0 fives, and 3 ones.
program named TestsInteractiveGUI that allows a user to enter scores
he has taken. Display the average of the test scores to two decimal places.
meration named Month that holds values for the months of the year,
be placed
de of any metho
NUARY equal to 1. (Recall that an enume
Transcribed Image Text:CHAPTER 3 Using GU Objects and the Visual Studio IDE Exercises Programming Exercises were 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, are 2.54 centimeters in an inch. a measurement in inches, click a Button, and output the value in centimeters. There LWrite a GUI program named Inches To CentimetersGUI that allows the user to input siduol 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 44 percent increase. 3. Write a program named Move EstimatorGUI that prompts a user for the number $150 per hour and $2 per mile. of hours for a moving job and the number of miles involved in the move. After the user clicks a Button, display the moving fee which includes a base rate of $200 plus griliunco.s Write a GUI program named Eggs InteractiveGUI that allows a user to input the mber of eggs produced in a month by each of five chickens. Sum the eggs, then display Cotal in dozens and eggs. For example, a total of 127 eggs is 10 dozen and 7 eggs. a GUI program named MakeChangeGUI that calculates and displays the on of an entered number of dollars into currency denominations-twenties, and ones. For example, $113 is 5 twenties, 1 ten, 0 fives, and 3 ones. program named TestsInteractiveGUI that allows a user to enter scores he has taken. Display the average of the test scores to two decimal places. meration named Month that holds values for the months of the year, be placed de of any metho NUARY equal to 1. (Recall that an enume
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