
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
#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](https://content.bartleby.com/qna-images/question/b9f0bdf4-572f-4133-8b3a-121eaba2f02a/357e1a68-29d2-48c5-8c46-d26d49737730/jiiquri_thumbnail.jpeg)
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

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

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](https://content.bartleby.com/qna-images/question/b9f0bdf4-572f-4133-8b3a-121eaba2f02a/245551ec-c973-4e86-aa59-4d4326660265/0yj0hf_thumbnail.jpeg)
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

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
by Bartleby Expert
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](https://content.bartleby.com/qna-images/question/b9f0bdf4-572f-4133-8b3a-121eaba2f02a/245551ec-c973-4e86-aa59-4d4326660265/0yj0hf_thumbnail.jpeg)
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

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
by Bartleby Expert
Knowledge Booster
Similar questions
- Select all the correct responses. There is more than one correct response. Which of the following are a few of many positive impacts social media can have on a software team? Allow companies to investigate potential employees before getting hired Allow sharing interests Allow a degree of separation connection among software developers Allow connecting with team members who share similar valuearrow_forwardhttps://www.perforce.com/blog/qac/ai-writing-code-will-ai-replace-programmers why is AI not a threat to programmers in the immediate future.arrow_forwardWrite about technical writing plagiarism and provide remedies.arrow_forward
- What's the best approach to go about purchasing software? Your comments should be supported by relevant examples.arrow_forwardHow can "zero-installation" enhance the package installation process?arrow_forwardWhat is the role of usability testing in the development of computer interfaces? Provide an example of how usability testing can uncover design flaws.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY