Edit 1 ♥ 30% m1.cs [Design]* rojectedRaisesGUI 13 14 15 16 17 18 19 20 21 22 Git View 23 24 25 26 27 28 29 30 B I B92 - ror List Entire Solution Project x2 Build Y Form1* X } A 1 Debug Debug 1 reference public Form1() { 3 references public partial class Form1 : Form { private string lbloutput; Test Any CPU 个 Analyze InitializeComponent(); Tools 2 2 Errors A 2 Warnings double salary, nextYearSalary; object textBox = null; salary Projected RaisesGUI.Form1 Extensions Start D 0 references private void BtnDisplay_Click(object sender, EventArgs e) { Y Y CS0149 Method name expected A CS0219 The variable 'textBox' is assigned but its value is never used C# Interactive (.NET Framework 64-bit) Error List Output Ceady Window Help 1 Message 7 Build - IntelliSense Search (Ctrl+Q) Convert.ToDouble("textBox" (25, 000)); wwwwwww next YearSalary = (salary + (salary * 4) / 100); lbloutput.text = "Next year's salary for the employee will be $26,000.00" + nextYearSalary.ToString("C"); y Code Description ▲ Project CS1061 accepting a first argument of type 'string' could be found (are you missing a using directive or Projected RaisesGUI an assembly reference?) CS0649 Field 'Form1.txtSalary' is never assigned to, and will always have its default value null IDE0044 Make field readonly textBox1 Projected RaisesGUI Projected RaisesGUI Projected RaisesGUI Projected RaisesGUI File Form1.cs P A Form1.cs Form1.cs Form1.cs Form1.cs Projected Raises GUI Form1.Designer.cs® X Ln: 33 Ch: 9 Search Error List Line Suppression State 30 Active S SPC 16 Active Active Active 15 28 27 Active C ↑ Add to Som

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

I need some help with these errors I'm getting for a C# Project. It's Question 2. I'm getting these errors + message error. Images and some output pictures would be great! Just need some help to fix these errors. Thanks!

Edit View Git
1
SHACTRESER
n1.cs [Design]*
rojected RaisesGUI
00%
TE
13
15
16
17
18
19
20
21
22
23
24
25
26
29
30
71°F
Cloudy
Project
2.
2
Form1
Build
}
Debug
Debug
1 reference
public Form1()
{
3 references
public partial class Form1 : Form
{
private string lbloutput;
4
Test Analyze
Any CPU
InitializeComponent();
Tools
53
ProjectedRaises GUI.Form1
2 Errors A 2 Warnings
Start ->
Extensions
O references
private void BtnDisplay_Click(object sender, EventArgs e)
{
double salary, nextYearSalary;
object textBox = null;
salary = Convert.ToDouble("textBox" (25, 000));
Punumurununu
L
1 Message
Window
Y
rror List
Entire Solution
Project
CS1061 accepting a first argument of type 'string' could be found (are you missing a using directive or Projected RaisesGUI
Code Description
an assembly reference?)
A CS0649 Field Form1.txtSalary' is never assigned to, and will always have its default value null
IDE0044 Make field readonly
CS0149 Method name expected
A CS0219 The variable 'textBox' is assigned but its value is never used
C# Interactive (.NET Framework 64-bit) Error List Output
Ready
Help
T
Build + IntelliSense
Search (Ctrl+Q)
next YearSalary = (salary + (salary * 4) / 100);
lbloutput.text = "Next year's salary for the employee will be $26,000.00" + next YearSalary.ToString("C");
ProjectedRaisesGUI
Projected Raises GUI
Projected RaisesGUI
ProjectedRaisesGUI
textBox1
- ?
hp
36
-
File
Form1.cs
A Form1.cs
Form1.cs
Form1.cs
Form1.cs
P
?
Projected RaisesGUI
Form1.Designer.cs** X ▼
Ln: 33 Ch: 9 SPC C
Search Error List
Line Suppression State
30
Active
1
16
Active
Active
15
28
Active
27 Active
↑ Add to Sou
Transcribed Image Text:Edit View Git 1 SHACTRESER n1.cs [Design]* rojected RaisesGUI 00% TE 13 15 16 17 18 19 20 21 22 23 24 25 26 29 30 71°F Cloudy Project 2. 2 Form1 Build } Debug Debug 1 reference public Form1() { 3 references public partial class Form1 : Form { private string lbloutput; 4 Test Analyze Any CPU InitializeComponent(); Tools 53 ProjectedRaises GUI.Form1 2 Errors A 2 Warnings Start -> Extensions O references private void BtnDisplay_Click(object sender, EventArgs e) { double salary, nextYearSalary; object textBox = null; salary = Convert.ToDouble("textBox" (25, 000)); Punumurununu L 1 Message Window Y rror List Entire Solution Project CS1061 accepting a first argument of type 'string' could be found (are you missing a using directive or Projected RaisesGUI Code Description an assembly reference?) A CS0649 Field Form1.txtSalary' is never assigned to, and will always have its default value null IDE0044 Make field readonly CS0149 Method name expected A CS0219 The variable 'textBox' is assigned but its value is never used C# Interactive (.NET Framework 64-bit) Error List Output Ready Help T Build + IntelliSense Search (Ctrl+Q) next YearSalary = (salary + (salary * 4) / 100); lbloutput.text = "Next year's salary for the employee will be $26,000.00" + next YearSalary.ToString("C"); ProjectedRaisesGUI Projected Raises GUI Projected RaisesGUI ProjectedRaisesGUI textBox1 - ? hp 36 - File Form1.cs A Form1.cs Form1.cs Form1.cs Form1.cs P ? Projected RaisesGUI Form1.Designer.cs** X ▼ Ln: 33 Ch: 9 SPC C Search Error List Line Suppression State 30 Active 1 16 Active Active 15 28 Active 27 Active ↑ Add to Sou
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 with 1 images

Blurred answer
Similar questions
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