X Toolbox ℗ File Edit View Git Project Build Debug Test Analyze -882- Any CPU Form1.cs [Design]* CProjected RaisesGUI BT 10 Y 22222~~~ 555 E EE 17 18 25 8 8 B Enamespace Projected RaisesGUI { □ — 9 Form1.cs* X y } Debug 3 references public partial class Form1 : Form { 1 reference public Form1() { } Projected RaisesGUI.Form1 } InitializeComponent(); Tools Extensions Start D T Window Help Lp T 1 reference private void label2_Click(object sender, EventArgs e) { Form1() Y Search (Ctrl+Q) 蟾這喔见习习习, an- int sal Convert.ToInt32(label2. Text); double expSal = sal + sal * 0.04; label2. Text="Next year's Salary for the employee will be $26,000" +expsal; + Solution Explor 非 n Search Solution Solution 'P Project Prop Refer 4 24 D P ▷ A App.c Form1 For Form C# Prograr Solution Explorer Git Properties

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
100%

#2 is giving me problems. Help eould be appreciated!

8
Toolbox
File Edit View Git Project Build Debug Test Analyze
一 1,91,9
Form1.cs [Design]*
C# ProjectedRaisesGUI
10
11
12
100%
13
15
16
18,
19
20
esc
0 12
Error List
23
24
28
29
32
33
Entire Solution
Code
Cloudy
8
M =
389-2-
0
2
Enamespace ProjectedRaisesGUI
{
Form1.cs* X
}
3 references
public partial class Form1 : Form
{
}
12
1 reference
public Form1()
{
T
}
AO
hommik
}
Debug
7
1 reference
private void label2_Click(object sender, EventArgs e)
{
Description
C# Interactive (.NET Framework 64-bit) Error List Output
Ready
Any CPU
Projected RaisesGUI.Form1
InitializeComponent();
1 Error
0 Warnings
13 1
5
int sal= Convert.ToInt32(label2. Text);
double expSal = sal + sal * 0.04;
Label2. Text="Next year's Salary for the employee will be $26,000" +expSal;
Project
f4
Tools Extensions Window
Start - ▷ ✔
f5
0 of 1 Message 7
Form1()
Build IntelliSense
O
16
4
Help
Search (Ctrl+Q)
hp
Ln: 18- Ch: 10 SPC CRLF
АД Х
- Search Error List
Line Suppression State
f8
ผสมพ.
19
#
NO
▶
Solution Explor
AF
Search Solution
Solution 'P
C# Project.
Prop
Refer
-
▷
>
f10
P
App.c
Form T
Solution Explorer Git
Properties
For
Form
C# Program
Transcribed Image Text:8 Toolbox File Edit View Git Project Build Debug Test Analyze 一 1,91,9 Form1.cs [Design]* C# ProjectedRaisesGUI 10 11 12 100% 13 15 16 18, 19 20 esc 0 12 Error List 23 24 28 29 32 33 Entire Solution Code Cloudy 8 M = 389-2- 0 2 Enamespace ProjectedRaisesGUI { Form1.cs* X } 3 references public partial class Form1 : Form { } 12 1 reference public Form1() { T } AO hommik } Debug 7 1 reference private void label2_Click(object sender, EventArgs e) { Description C# Interactive (.NET Framework 64-bit) Error List Output Ready Any CPU Projected RaisesGUI.Form1 InitializeComponent(); 1 Error 0 Warnings 13 1 5 int sal= Convert.ToInt32(label2. Text); double expSal = sal + sal * 0.04; Label2. Text="Next year's Salary for the employee will be $26,000" +expSal; Project f4 Tools Extensions Window Start - ▷ ✔ f5 0 of 1 Message 7 Form1() Build IntelliSense O 16 4 Help Search (Ctrl+Q) hp Ln: 18- Ch: 10 SPC CRLF АД Х - Search Error List Line Suppression State f8 ผสมพ. 19 # NO ▶ Solution Explor AF Search Solution Solution 'P C# Project. Prop Refer - ▷ > f10 P App.c Form T Solution Explorer Git Properties For Form C# Program
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
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Not sure what that error means and how to fix it.

0%
eli-
Program.cs 7 Form1.cs [Design]"
CH Projected RaisesGUI
ady
27
28
31
17
18
19
20
21
239
24
25
30
13
15
16
or List
tire Solution
Code
71°F
Cloudy
IDE1006
i IDE0052
I
Projesno
Ba|--| Debug
No issues found
201
1 reference
public Form1()
{
Ochug
Form1.Designer.cs
public partial class Form1 : Form
{
private string lbloutput;
Any CPU
InitializeComponent();
O references
private void btnDisplay_Click(object sender, EventArgs e)
{
y
Formm est X
Projected RaisesGUI.Form1
double salary, next YearSalary;
object txtSalary = null;
salary = Convert.ToDouble(txtSalary);
0 Errors A0 of 1 Warning
teractive (.NET Framework 64-bit) Error List Output
Tools Extensions Wisdow Help
Start --||
Description
Naming rule violation: These words must begin with upper case
characters: btnDisplay_Click
2 Messages
next YearSalary = (salary + (salary * 4) / 100);
lbloutput = "Next year's salary for the employee will be $26,000" + nextYearSalary.ToString("C");
97
Private member 'Form 1.lblOutput' can be removed as the value assigned
to it is never read
Build+ IntelliSense
Project
Projected RaisesGUI
ProjectedRaisesGUI
O
Search (Ctrl+Q)
1221只见切白,
-btnDisplay_Click(object sender, EventArgs e)
File
Form1.cs
Form1.cs
ip
P
Ln: 23 Ch: 25
Search Error List
23
15
Line Suppression State
Projected Raises GUI
Active
Active
SPC
4
Solution Explorer
Search Solution Explorer (Ctrl+:)
CRLF
4 x
P
Solution ProjectedRaisesGUI' (1 of 1 project)
Projected RaisesGUI
Properties
References
App.config
Form1.cs
> Form1.Designer.cs
Form1.resx
> C# Program.cs
Solution Explorer Git Changes
Properties -
Live Share
Add to Source Control
X
B
a
4
Select Repository
5₂
4:04 PM
9/10/2022
Transcribed Image Text:0% eli- Program.cs 7 Form1.cs [Design]" CH Projected RaisesGUI ady 27 28 31 17 18 19 20 21 239 24 25 30 13 15 16 or List tire Solution Code 71°F Cloudy IDE1006 i IDE0052 I Projesno Ba|--| Debug No issues found 201 1 reference public Form1() { Ochug Form1.Designer.cs public partial class Form1 : Form { private string lbloutput; Any CPU InitializeComponent(); O references private void btnDisplay_Click(object sender, EventArgs e) { y Formm est X Projected RaisesGUI.Form1 double salary, next YearSalary; object txtSalary = null; salary = Convert.ToDouble(txtSalary); 0 Errors A0 of 1 Warning teractive (.NET Framework 64-bit) Error List Output Tools Extensions Wisdow Help Start --|| Description Naming rule violation: These words must begin with upper case characters: btnDisplay_Click 2 Messages next YearSalary = (salary + (salary * 4) / 100); lbloutput = "Next year's salary for the employee will be $26,000" + nextYearSalary.ToString("C"); 97 Private member 'Form 1.lblOutput' can be removed as the value assigned to it is never read Build+ IntelliSense Project Projected RaisesGUI ProjectedRaisesGUI O Search (Ctrl+Q) 1221只见切白, -btnDisplay_Click(object sender, EventArgs e) File Form1.cs Form1.cs ip P Ln: 23 Ch: 25 Search Error List 23 15 Line Suppression State Projected Raises GUI Active Active SPC 4 Solution Explorer Search Solution Explorer (Ctrl+:) CRLF 4 x P Solution ProjectedRaisesGUI' (1 of 1 project) Projected RaisesGUI Properties References App.config Form1.cs > Form1.Designer.cs Form1.resx > C# Program.cs Solution Explorer Git Changes Properties - Live Share Add to Source Control X B a 4 Select Repository 5₂ 4:04 PM 9/10/2022
tedRaises GUI
Form1.cs Design) X Form1.Designer.cs
Enter an employee's salary:
2
Debug
Display
X 0 Errors A0 of 1 Warning
10
Any CPU
www
NET Framework 64-bit) Error List Output
Form1.cs
Description
06 Naming rule violation: These words must begin with upper case
characters: btnDisplay_Click
2 Messages
Start >>
27
Private member 'Form1.lblOutput' can be removed as the value assigned
to it is never read
Properties Window
0
Help
5. to ===+HISQ|S|.
Details
Build+ IntelliSense
Project
Projected RaisesGUI
Projected RaisesGUI
Property value is not valid.
Search (Ctrl+Q)
File
OK
Form1.cs
Form1.cs
ip
==
Cancel
X
Search Error List
15
Line Suppression State
23
Active
Active
Projected Raises GUI
? N
Solution Explorer
A
Search Solution Explorer (Ctrl+;)
4x
. م
>> Properties
> References
Solution 'ProjectedRaisesGUI' (1 of 1 project)
Projected RaisesGUI
App.config
Form1.cs
C# Program.cs
Form1.Designer.cs
Form1.resx
Solution Explorer Git Changes
Properties
Table System.Windows.Forms.ListBox
+94
ValueMember
B Design
(Name)
GenerateMember
Locked
Modifiers
12 Live Share
Add to Source Control
>>
4
25000
True
False
Private
(Name)
Indicates the name used in code to identify the object.
1.
P
- X
Select Repository
A
4:03 PM
9/10/2022
(₂
Transcribed Image Text:tedRaises GUI Form1.cs Design) X Form1.Designer.cs Enter an employee's salary: 2 Debug Display X 0 Errors A0 of 1 Warning 10 Any CPU www NET Framework 64-bit) Error List Output Form1.cs Description 06 Naming rule violation: These words must begin with upper case characters: btnDisplay_Click 2 Messages Start >> 27 Private member 'Form1.lblOutput' can be removed as the value assigned to it is never read Properties Window 0 Help 5. to ===+HISQ|S|. Details Build+ IntelliSense Project Projected RaisesGUI Projected RaisesGUI Property value is not valid. Search (Ctrl+Q) File OK Form1.cs Form1.cs ip == Cancel X Search Error List 15 Line Suppression State 23 Active Active Projected Raises GUI ? N Solution Explorer A Search Solution Explorer (Ctrl+;) 4x . م >> Properties > References Solution 'ProjectedRaisesGUI' (1 of 1 project) Projected RaisesGUI App.config Form1.cs C# Program.cs Form1.Designer.cs Form1.resx Solution Explorer Git Changes Properties Table System.Windows.Forms.ListBox +94 ValueMember B Design (Name) GenerateMember Locked Modifiers 12 Live Share Add to Source Control >> 4 25000 True False Private (Name) Indicates the name used in code to identify the object. 1. P - X Select Repository A 4:03 PM 9/10/2022 (₂
Solution
Bartleby Expert
SEE SOLUTION
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