Summary
In this lab, you complete a prewritten C++ program that calculates an employee’s end-of-year bonus and prints the employee’s name, yearly salary, performance rating, and bonus. In this program, bonuses are calculated based on employees’ annual salary and their performance rating.

Instructions
Variables have been declared for you, and the input statements and output statements have been written. Read them over carefully before you proceed to the next step.
Design the logic, and write the rest of the program using a switch statement.
Execute the program by clicking the Run button at the bottom of the screen entering the following as input:
Employee’s name: Jeanne Hanson
Employee’s salary: 70000.00
Employee’s performance rating: 2
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Salary: $70000
Employee Rating: 2
Employee Bonus: $10500



This is what I have:



// EmployeeBonus.cpp - This program calculates an employee's yearly bonus.


#include
#include
using namespace std;
int main()
{
// Declare and initialize variables here
string employeeFirstName;
string employeeLastName;
double numPerformanceRate;
double numSalary;
double score;
double bonus;
const double BONUS_1 = .10;
const double BONUS_2 = .20;
const double BONUS_3 = .30;
const double BONUS_4 = .40;

const int RATING_1 = 1;
const int RATING_2 = 2;
const int RATING_3 = 3;
const int RATING_4 = 4;

// This is the work done in the housekeeping() function
cout << "Enter employee's first name: ";
cin >> employeeFirstName;
cout << "Enter employee's last name: ";
cin >> employeeLastName;
cout << "Enter employee's salary: ";
cin >> numSalary;
cout << "Employee’s performance rating: ";
cin >> numPerformanceRate;


// This is the work done in the detailLoop()function
// Write your code here


// This is the work done in the endOfJob() function
// Output.
cout << "Employee Name: " << employeeFirstName << " " << employeeLastName << endl;
cout << " Employee Salary: "<< numSalary << endl;
cout << "Employee Rating: " << numPerformanceRate << endl;
cout << "Employee Bonus: $" << bonus << endl;


return 0;
}


what am I doing wrong?

Answers

Answer 1

Answer:

You need to write the code that calculates the bonus based on the employee's performance rating and salary. This calculation should be done inside the switch statement and the bonus variable should be updated with the correct value. You can use the numPerformanceRate and numSalary variables to determine the bonus, and the BONUS_1, BONUS_2, BONUS_3, and BONUS_4 constants to calculate the bonus.

Explanation:

switch (numPerformanceRate) {

 case RATING_1:

   bonus = numSalary * BONUS_1;

   break;

 case RATING_2:

   bonus = numSalary * BONUS_2;

   break;

 case RATING_3:

   bonus = numSalary * BONUS_3;

   break;

 case RATING_4:

   bonus = numSalary * BONUS_4;

   break;

 default:

   cout << "Invalid performance rating. Please enter a number between 1 and 4." << endl;

   break;

}


Related Questions

Match each disk type on the left with its corresponding description/features on the right. Each disk type may be used once, more than once, or not at all.
Support up to 128 volumes: Dynamic disks.
Use primary and extended partitions: Basic Disks
Are supported by all operating systems: Basic Disks
Support volumes that use discontinuous disk space: Dynamic disks.
Store partitioning information in a hidden database on all such disks in the system: Dynamic disks.
Only support volumes made up of contiguous disk space: Basic disks.

Answers

Large-capacity magnetic storage device known as a hard disc drive (HDD). Solid State Drives (SSD) are non-volatile storage devices that don't need electricity to keep their data current.

Any piece of hardware that is used to store digital data is referred to as a storage device. Hard drives, SSDs, USB flash drives, optical discs, memory cards, and RAM are a few examples of storage devices. Data storage devices are necessary for both personal and professional use. The most popular storage option is a hard drive because of its high storage capacity and reasonable price. Because they outperform hard drives in terms of speed, dependability, and power efficiency, SSDs are growing in popularity. While optical discs, such CDs and DVDs, are still used for data preservation and storage, USB flash drives remain a practical choice for moving data between computers. For cameras and other portable devices, memory cards are a popular option.

Learn more about Storage device here:

https://brainly.com/question/29834485

#SPJ4

4. Create a Java application to calculate NY State taxes. A
user should be able to enter the taxable income, and the
program should display the taxes due. If the income is
below $20,000 the tax rate is 2%. If the income is
between $20,000 and $50,000 the tax rate is 3% and for
incomes greater than $50,000 the tax rate is 5%.

Answers

Explanation:

Tax on income you earn from employment is deducted directly from your salary (pay). A case study on how this tax is calculated.

1. The voltage, v, across a resistance is given as (Ohm's Law), v = iR, where i is the current and R is the resistance. The power dissipated in resistor R is given by the expression P i^2*R. If R = 10 Ohms and the current is increased from 0 to 10 A with increments of 2A, write a MATLAB program to generate a table of current, voltage, and power dissipation. Question 2. Write a function file to solve the equivalent resistance of series connected resistors, R1, R2, R3, ..., Rn.​

Answers

The program for generating a table of current, voltage, and power dissipation is illustrated below.

How to write the program

The MATLAB code for generating a table of current, voltage, and power dissipation:

R = 10; % resistance

i = 0:2:10; % current values

v = i*R; % voltage calculation

P = i.^2 * R; % power dissipation calculation

T = table(i',v',P','VariableNames',{'Current','Voltage','Power'}); % create table

disp(T); % display table

Function file to solve the equivalent resistance of series connected resistors:

function Req = series_resistance(R)

% This function calculates the equivalent resistance of a series connection

% of resistors.

% Input:

% - R: vector of resistor values

% Output:

% - Req: equivalent resistance

Req = sum(R); % calculate equivalent resistance as sum of all resistors

end

Learn more about program on;

https://brainly.com/question/26642771

#SPJ1

investigation on how to feed pets technology sub​

Answers

The field of pet feeding technology has seen significant advancements in recent years, with a range of new products and solutions being developed to help pet owners feed their pets more effectively and efficiently.

One popular technology in pet feeding is the automatic pet feeder. These feeders use timers and sensors to dispense food at predetermined times, allowing pet owners to set a feeding schedule and ensure that their pets are getting the right amount of food, even when they are not at home. Some automatic feeders also have features such as portion control and the ability to dispense different types of food, making them a convenient and versatile solution for pet owners.

Another type of pet feeding technology is the connected pet feeder. These feeders use Wi-Fi or other wireless technologies to connect to a smartphone or other device, allowing pet owners to remotely control the feeding schedule, monitor food levels, and receive alerts when the feeder needs to be refilled. Some connected feeders also have features such as video cameras, which allow pet owners to watch their pets eat from anywhere.

There are also smart pet feeders that use artificial intelligence and machine learning to tailor feeding schedules to the individual needs of each pet. These feeders can track a pet's eating habits, learn their preferred meal times and portion sizes, and adjust the feeding schedule accordingly. This type of technology can help pet owners ensure that their pets are getting the right amount of food and can also help prevent overeating and related health issues.

In addition to these products, there are also various apps and services available that help pet owners manage their pet's feeding. For example, there are meal planning apps that help pet owners track their pet's food intake and make sure they are getting the right nutrients. There are also services that provide custom-made pet food, formulated to meet the specific nutritional needs of each individual pet.

In conclusion, there are a variety of technologies available for pet owners to help them feed their pets more effectively and efficiently. From automatic feeders and connected feeders to smart feeders and meal planning apps, these technologies offer a range of solutions that can help pet owners ensure that their pets are getting the right amount of food and the right nutrients.

____DELETED .....
...........................

Answers

Answer:____DELETED …………………………………….

Explanation:____DELETED …………………………………….

Explain how computer vision works and its application.​

Answers

Computer vision is a form of artificial intelligence which enables machines to recognize objects, people, text, and other features in digital images and videos. This technology uses algorithms that are trained on datasets and then use machine learning techniques on those datasets to learn how to recognize different targets. Computer vision has a wide range of applications, from facial recognition and autonomous navigation to medical imaging and image processing. It can be used to identify and classify objects in an image, detect movement or changes in the environment, and provide insights into data. It can also help automate processes such as counting the number of objects in an image or measuring distances between them.

Consider the following method.
public static void mystery(List nums)
{
for (int k = 0; k < nums.size(); k++)
{
if (nums.get(k).intValue() == 0)
{
nums.remove(k);
}
}
}
Assume that a List values initially contains the following Integer values.
[0, 0, 4, 2, 5, 0, 3, 0]
What will values contain as a result of executing mystery(values)?
a. [0, 0, 4, 2, 5, 0, 3, 0]
b. [4, 2, 5, 3]
c. [0, 0, 0, 0, 4, 2, 5, 3]
d. [0, 4, 2, 5, 3]
e. The code throws an ArrayIndexOutOfBoundsException exception.

Answers

The right response is indicated as Integer values- [0, 4, 2, 5, 3].

What three types of codes are there?

Every application on a website, in general, comprises of three different types of code. These categories include dependability code, infrastructure code, and feature code. A code sample is a finished web page or application that includes references in its description to all necessary source files.

What are the three main coding structures?

Surprisingly, it may frequently be reduced to three basic programming constructs known as loops, selects, and sequences. The most fundamental instructions and algorithms for all sorts of software are created by combining these.

To know more about Integer visit:-

https://brainly.com/question/30528178

#SPJ1

Design of pet feeder​

Answers

A pet feeder is designed to automatically dispense food to pets at predetermined times. The design of a pet feeder can vary depending on the type of pet and the desired features, but a common design includes:

Food container: This is where the pet food is stored. The container can be made of plastic, metal or a combination of materials. Some containers have a removable lid for easy refilling, while others are refillable from the top.

Dispenser mechanism: This is the component that releases the food from the container. It can be a simple gravity-based system or a more sophisticated system that uses a motor or other mechanism to release the food.

Timer or programmable control: This component controls the dispenser mechanism and sets the feeding schedule. Some pet feeders have a manual timer, while others have a digital control that can be programmed to dispense food at specific times of the day.

Power source: Pet feeders require a power source to operate. Some feeders use batteries, while others have an AC power adapter.

Feeding bowl: This is where the pet will eat the food dispensed by the feeder. Some feeders have built-in bowls, while others are designed to work with existing bowls.

Overall, the design of a pet feeder must be durable, easy to clean, and able to securely store and dispense pet food in a safe and reliable manner.

What are some of the potential security issues when using cloud computing and can it be fixed? search the peer-reviewed literature for examples of this. you may select any topic relating to technology that illustrates the potential for really messing things up. include, in your description, an analysis of what might have caused the problems and potential solutions to them. be sure to provide supporting evidence, with citations from the literature. it is not enough for you to simply create your own posting. you must read the postings of the other members of the class and comment on each of them. please see the discussion forum of the class syllabus for additional details on the content.

Answers

One of the primary security issues when using cloud computing is data leakage. Data leakage can occur when an unauthorized third party or malicious attacker gains access to sensitive data or systems, resulting in data theft. Examples of this include unauthorized access to private databases or systems, or access to sensitive data stored in the cloud.

Potentially, data leakage can occur due to a variety of factors. First, inadequate security controls can lead to data leakage. For example, if proper authentication and authorization controls are not in place, malicious actors can gain access to sensitive data. Additionally, weak encryption standards or the use of outdated encryption algorithms can create a vulnerability that can be exploited. Finally, malware or malicious code can also be used to gain access to sensitive data.

The primary solution to data leakage is to ensure that appropriate security controls are in place. This includes the use of strong authentication and authorization measures, such as multi-factor authentication, to ensure that only authorized users have access to sensitive data and systems. Additionally, encryption standards should be kept up-to-date and strong encryption algorithms should be used to protect data in transit and at rest. Finally, malware protection and intrusion detection systems should be implemented to detect and prevent malicious code from gaining access to sensitive data.

learn more about data here

https://brainly.com/question/11941925

#SPJ4

Robotics is an example of how data is used in Communication Systems?​

Answers

Answer:

No, robotics is not an example of how data is used in communication systems. Robotics uses communication systems for sending and receiving data between various components of the robot, such as sensors, actuators, and controllers, but it is not an example of the data usage in communication systems itself. Communication systems involve the transfer of information from one place to another through various media and technologies, such as wired and wireless networks, satellites, and other transmission methods

Explanation:

wap to input name address and grade and print them

Answers

Here's a python code that takes inputs for name, address, and grade and prints them

The Python Code

name = input("Enter your name: ")

address = input("Enter your address: ")

grade = input("Enter your grade: ")

print("Name: ", name)

print("Address: ", address)

print("Grade: ", grade)

In this code, we use the input function to get input from the user and store it in the variables name, address, and grade. Then, we use the print function to print the values of these variables.

Read more about programs here:

https://brainly.com/question/26134656

#SPJ1

Pandas has built-in readers for many different file formats including the file format used here to store tweets. to learn more about these, check out the documentation for pd.read csv (docs), pd.read html(docs), pd.read json(docs), and pd.read excel(doccs). use one of these functions to populate the tweets dictionary with the tweets for: aoc, cristiano, and elonmusk. the keys of tweets should be the handles of the users, which we have provided in the cell below, and the values should be the dataframes. set the index of each dataframe to correspond to the id of each tweet.

Answers

Using Pandas built-in file readers, the tweets dictionary is populated with the tweets for the given handles by setting the index of each DataFrame to the tweet ID.

To populate the tweets dictionary with the tweets for aoc, cristiano, and elonmusk, we can use the pd.read_json function since the tweets are stored in a JSON format.

Here's an example code to achieve this:

import pandas as pd

handles = ['aoc', 'cristiano', 'elonmusk']

# Initialize tweets dictionary

tweets = {}

# Loop through the handles and read the JSON file for each user

for handle in handles:

   filename = f"{handle}_tweets.json"

   df = pd.read_json(filename)

   df.set_index('id', inplace=True)

   tweets[handle] = df

In this code, we first define the handles list that contains handles for the users we want to retrieve tweets for. We then initialize an empty dictionary tweets.

Next, we loop through each handle in the handles list, and for each handle, we construct the name of the corresponding JSON file and read it using the pd.read_json function. We then set the index of the resulting DataFrame to the id column using the set_index method, and finally, we add the resulting DataFrame to the tweets dictionary with the handle as the key.

After running this code, the tweets dictionary should contain three keys, one for each user, with the corresponding DataFrame of tweets as the value for each key.

Learn more about DataFrame here:

https://brainly.com/question/28190273

#SPJ4

Create a user-defined function named
'loadMaze' that accepts 3 parameters:
1. the maze string returned from the 'createMaze' function (above),
2. the # of rows the maze contains, and
3. the # of columns the maze contains.
This function uses the maze string to create a 2-dimensional
list containing every character in the maze. The first
character stored at (0,0) and the last at (rows-1, cols-1).
This function returns the 2-dimensional list.

Answers

Answer:

def loadMaze(mazeString, rows, cols):

   maze = []

   for i in range(rows):

       row = []

       for j in range(cols):

           index = i*cols + j

           row.append(mazeString[index])

       maze.append(row)

   return maze

Explanation: This function takes in three parameters: mazeString, the string returned from the createMaze function, rows, the number of rows in the maze, and cols, the number of columns in the maze.

The function first creates an empty list maze. It then loops through each row of the maze and creates a new list row. For each row, it loops through each column and calculates the index of the corresponding character in the mazeString based on the row and column numbers. It then appends the character at that index to the row. Finally, it appends the completed row to the maze.

Once all rows and columns have been processed, the completed maze 2-dimensional list is returned. The first character in the maze is stored at index (0,0) and the last character is stored at index (rows-1,cols-1).

Given a plaintext block and a round key 0 with the following values:
• =
• 0 =
Compute the following AES operations:
(a) The initial AES AddRoundKey layer. (6 pts)
(b) The SubBytes layer from the first round. (6 pts)
(c) The ShiftRows layer from the first round. (6 pts)
(d) The MixColumn layer from the first round applied only to the to the first
column of the internal state. (10 pts)
2. Let plaintext ′ be from problem 1 with the first byte changed to ff. That is,
′ =
Answer the following questions.
(a) Compute the results of the initial AddRoundKey layer with ′ as the input.
How many bytes are different from your answer to problem 1(a)? (4 pts)
(b) Compute the results of the round 1 SubBytes layer with the results from part
(a) as the input. How many bytes are different from your answer to problem
1(b)? (4 pts)
(c) Compute the results of the round 1 ShiftRows layer with the results from
part (b) as the input. How many bytes are different from your answer to
problem 1(c)? (4 pts)
(d) Compute the results of the round 1 MixColumn layer on the first column of
the results from part (c) as the input. How many bytes are different from
your answer to problem 1(d)? (4 pts)
(e) How many bytes would be different in the remaining 3 columns if ′ were
used instead of ? (2 pts)
(f) How many bytes would be different at the end of round 1 if ′ were used
instead of ? (2 pts)
(g) How many bytes would be different at the end of round 2 if ′ were used
instead of ? (2 pts)

Answers

Answer:

people were telling me what to do all the time and I did not enjoy it.( change into passive voice

Kevin owns a toy company. How should he ensure that his customers are receiving a high-quality product Question 1 options: Offer a discount on future purchases to customers Repair products that have been sold to customers and are broken Survey customers and ask for suggestions Test a prototype

Answers

To ensure that his customers are receiving a high-quality product, Kevin can take a number of steps.

One option is to test a prototype before launching the final product to ensure that it meets the desired quality standards. Additionally, he can use customer feedback to improve the quality of the product. He can survey customers and ask for suggestions to understand their needs and preferences. Kevin can also offer a warranty or guarantee on his products and repair or replace products that have been sold to customers and are broken. By doing so, he can demonstrate his commitment to customer satisfaction and improve his company's reputation for producing high-quality products.

To know more about prototype visit:

https://brainly.com/question/28370530

#SPJ1

What is a distinguishing feature of 5G mm Wave?

Answers

Answer:

Explanation:

The 5G high band (millimeter wave, also known as FR2) ranges from 24 GHz to 40 GHz. They provide a large amount of spectrum and capacitance at the shortest distance. It also uses Massive MIMO to increase capacity and increase coverage.

Select the correct text in the passage.
Which computer applications can Mr. Crowell use to make the classroom learning more stimulating and interesting?
Mr. Crowell has been teaching in a school for years with the help of traditional teaching methods. Recently, the school authorities have
recommended the use of computer programs and applications to facilitate a better learning experience for their students. Mr. Crowell wants to make
the classroom learning stimulating and interesting. He will have to use a few of the several computer applications available to him. These applications
include email, multimedia presentations, spreadsheets, word processing software] videos, and simulations,
rights reserved.
Reset
Next

Answers

The computer applications can Mr. Crowell use to make classroom learning more stimulating and interesting are:

b) Multimedia presentationsc) Spreadsheetsd) Word processing softwaref) Simulations

What are computer applications?

Email, spreadsheets, and word processing software would not be good choices for him to utilize in his class as his pupils cannot interact with these tools. His major objective is to provide a better learning experience.

Mr. Crowell should think about adding multimedia presentations, movies, and simulations to augment his current teaching techniques since he wants to add more interesting computer applications to his classroom.

Therefore, the correct options are b, c, d, and f.

To learn more about computer applications, refer to the link:

https://brainly.com/question/8224724

#SPJ9

The question is incomplete. The missing options are given below:

Options:

-email

-multimedia presentations

-spreadsheets

-word processing software

-videos

-simulation

Welcome to lab 3! this week, we will focus on manipulating tables. we will import our data sets into tables and complete the majority of analysis using these tables. tables are described in chapter 6 of the inferential thinking text. a related approach in python programming is to use what is known as a pandas dataframe which we will need to resort to occasionally. pandas is a mainstay datascience tools. first, set up the tests and imports by running the cell below.

Answers

These lines set up the plotting functionality and formatting.

import matplotlib code

§ Code

# Run this cell, but please don't change it.

import numpy as np

from datascience import *

# These lines set up the plotting functionality and formatting.

import matplotlib

matplotlib.use('Agg', warn=False)

%matplotlib inline

import matplotlib.pyplot as plt

plt.style.use('fivethirtyeight')

import warnings

warnings.simplefilter('ignore', FutureWarning)

from client.api.notebook import Notebook

ok = Notebook('lab03.ok')

_ = ok.auth(inline=True)

§ Markdown

# 1. Creating Tables

*Question 1.1*

Make a table called `four_seasons` that has two columns called `season` and `temperature`. Fill in the rows with the appropriate values for Spring, Summer, Fall, and Winter.

<!--

BEGIN QUESTION

name: q1_1

-->

§ Code

four_seasons = Table().with_columns('season', make_array('Spring', 'Summer', 'Fall', 'Winter'),

                                   'temperature', make_array(60, 80, 50, 30))

four_seasons

§ Output

> ['season | temperature\n', 'Spring | 60\n', 'Summer | 80\n', 'Fall   | 50\n', 'Winter | 30']

§ Code

ok.grade("q1_1");

§ Output

> stdout : ['~~~~~~~~~~~~~~~~~~~~~~~\n', 'Running tests\n', '\n', '---------------------------------------------------------------------\n', 'Test summary\n', '    Passed: 1\n', '    Failed: 0\n', '[ooooooooook] 100.0% passed\n', '\n']

§ Markdown

*Question 1.2*

Make a table called `numbers` with a column called `Number` that contains the numbers from 1 to 10 in increasing order.

<!--

BEGIN QUESTION

name: q1_2

-->

§ Code

numbers = Table().with_columns('Number', np.arange(1, 11))

numbers

§ Output

> ['Number\n', '1\n', '2\n', '3\n', '4\n', '5\n', '6\n', '7\n', '8\n', '9\n', '10']

§ Code

ok.grade("q1_2");

§ Output

> stdout : ['~~~~~~~~~~~~~~~~~~~~~~~\n', 'Running tests\n', '\n', '---------------------------------------------------------------------\n', 'Test summary\n', '    Passed: 1\n', '    Failed: 0\n', '[ooooooooook] 100.0% passed\n', '\n']

§ Markdown

# 2. Working with Tables

*Question 2.1*

Use the `four_seasons` table created in the previous question to find the temperature during the summer.

<!--

BEGIN QUESTION

name: q2_1

-->

§ Code

temperature_summer = four_seasons.where('season', are.equal_to('Summer')).column('temperature').item(0)

temperature_summer

§ Output

> ['80']

§ Code

ok.grade("q2_1");

§ Output

> stdout : ['~~~~~~~~~~~~~~~~~~~~~~~\n', 'Running tests\n', '\n', '---------------------------------------------------------------------\n', 'Test summary\n', '    Passed: 1\n', '    Failed: 0\n', '[ooooooooook] 100.0% passed\n', '\n']

§ Markdown

*Question 2.2*

Using the `numbers` table created in the previous question, find the sum of all the numbers from 1 to 10 (inclusive).

<!--

BEGIN QUESTION

name: q2_2

-->

§ Code

sum_numbers = sum(numbers.column('Number'))

sum_numbers

§ Output

> ['55']

§ Code

ok.grade("q2_2");

§ Output

> stdout : ['~~~~~~~~~~~~~~~~~~~~~~~\n', 'Running tests\n', '\n', '---------------------------------------------------------------------\n', 'Test summary\n', '    Passed: 1\n', '

learn more about code here

https://brainly.com/question/17293834

#SPJ4

If the "limit n" clause is not provided as part of an SQL command, all the rows of the table will get displayed. True

Answers

Answer:

Explanation:

True. If the "limit n" clause is not specified as part of an SQL command, all the rows of the table will be displayed. The "limit n" clause is used to limit the number of rows returned in a query result, so if it's not provided, the entire table will be returned by default.

1.
Question 1
Computer 1 on network A, with the IP address of 10.1.1.8, wants to send a packet to Computer 2, with the IP address of 10.1.1.10. On which network is computer 2?
1 point

Not present

Network C

Network B

Network A
2.
Question 2
Computer 1 wants to send a packet to Computer 2. Since computer 2 is not on the local network, Computer 1 checks the ARP table for the corresponding ______ that matches the gateway IP.
1 point

TTL value

MAC address

Destination MAC address

Port number
3.
Question 3
Which layer constructs the Ethernet frame?
1 point

Application layer

Transport layer

Physical Layer

Data link layer
4.
Question 4
What information is in the payload section of the TCP segments?
1 point

Handshake

The MAC address of Computer 1

The application layer data

ART Table
5.
Question 5
When constructing the Ethernet datagram to send the packet from Router Z to Computer 2 which is on Network C, what information needs to be in the destination MAC address?
1 point

Router Y’s MAC address

Computer 1’s MAC address

Computer 2’s MAC address

No MAC address is needed
6.
Question 6
Computer 1 on Network A sends a packet to Computer 2 on Network C. What's the first step that Router Z does after receiving the Ethernet frame?
1 point

Increases the TTL by one

Calculates a checksum and compares this checksum with the one in the Ethernet frame header

Checks the destination IP address and changes it to its own

Sends an ARP broadcast message
7.
Question 7
Computer 1 on network A, with IP address of 10.1.1.8, wants to send a packet to Computer 2, with IP address of 172.16.1.64. If the TTL value was set to 64 at the beginning, what is the value of the TTL once it reaches its destination?
1 point

60

62

0

65
8.
Question 8
Computer 1 on network B, with IP address of 192.168.1.121, wants to send a packet to Computer 2, with IP address of 10.1.1.8. Taking in consideration that computer 1 is sending a request to a web server on computer 2, listening on port 80, and the source port on computer 1 is 5000, which of the following contains the correct information for the first TCP segment of data?
1 point

Source Port: 8081
Destination Port: 50
Sequence Number: 4
Acknowledgment Number: 1

Source Port: 80
Destination Port: 5000
Sequence Number: 1
Acknowledgment Number: 2

Source Port: 5000
Destination Port: 80
Sequence Number: 1
Acknowledgment Number: 2

Source Port: 80
Destination Port: 5000
Sequence Number: 1
Acknowledgment Number: 1
9.
Question 9
Computer 1 on network A, with IP address of 10.1.1.10, wants to send a packet to Computer 2, with IP address of 172.16.1.64. Which of the following has the correct IP datagram information for the fields: Version, minimum Header Length, Source IP, and Destination IP?
1 point

Version: 6
Header Length: 20
Source IP Address: 8a:1a:2b:3c:4d:5f
Destination IP address: 2a:2b:3c:4d:8f

Version: 5
Header Length: 16
Source IP Address: 171.1.1.1.
Destination IP address: 172.16.1.0/24.

Version: 4
Header Length: 20
Source IP Address: 10.1.1.10
Destination IP address: 172.16.1.64

Version: 4
Header Length: 32
Source IP Address: 10.1.1.1
Destination IP address: 172.16.1.1
10.
Question 10
The Cat6 cable is part of the ______ layer.
1 point

Transport

Physical

Application

Network

Answers

Answer:

Network AMAC addressData link layerApplication layer dataComputer 2's MAC addressChecks the destination IP address and changes it to its own62Source Port: 5000, Destination Port: 80, Sequence Number: 1, Acknowledgment Number: 1Version: 4, Header Length: 20, Source IP Address: 10.1.1.10, Destination IP Address: 172.16.1.64Physical

Explanation:

X565: Simple Text Parameter Output

Answers

The given method is incomplete, and there are errors in the examples and expected output provided. Here is the corrected method to print out the parameter in the explanation part.

What is programming?

Making a set of instructions that instruct a computer how to carry out a task is the process of programming. Computer programming languages like JavaScript, Python, and C++ can all be used for programming.

The corrected method to print out the parameter is:

public void simplePrint(String a) {

   System.out.println(a);

}

Examples and expected output:

simplePrint("Hello") outputs HellosimplePrint("Hello world!") outputs Hello world!simplePrint("hello") outputs hellosimplePrint("Hello World!") outputs Hello World!simplePrint("This is a sentence") outputs This is a sentencesimplePrint("1, 2, 3") outputs 1, 2, 3simplePrint("A new sentence") outputs A new sentence

Thus, this can be the expected outputs.

For more details regarding programming, visit:

https://brainly.com/question/11023419

#SPJ9

Your question seems incomplete, the probable complete question is:

Simple Text Parameter Output Complete this method to print out the parameter.

Examples:

simpleprint (Hello) outputs Hello

simplePrint(Hello world!) outputs Hello world!

Your Answer: 1

public void simplePrint(String a) 2 { 3 43 5

simplePrint(Hello) outputs Hello -

simplePrint(hello) outputs hello

SimplePrint("hello") outputs "hello" expected:<[h]ello> but was:<[H]ello> simplePrint(Hello World!) outputs Hello World! SimplePrint("Hello World!") outputs "Her World!" expected:<Hello[ World!]> but w- <Hello[]>

simplePrint(This is a sentence) outputs TI is a sentence SimplePrint("This is a sentence") outputs "This is a sentence" expected:<[This is a sentence]> but was:<[Hello]>

simplePrint(1,2,3) outputs 1,2,3 SimplePrint("1, 2,3") outputs 1, 2, 3" expected:<[1, 2, 3]> but was:<[Hello]>

simplePrint(A new sentence) outputs A new

HELP

Which of the following is used with mobile file storage systems?

Basic Disk
Dynamic Disk
FAT32
NTFS

Answers

Answer: It should be dynamic

Explanation: a online search.

Write a simple single thread CSC4420 shell, i.e., no concurrent commands, to support at least the following built-in commands: prompt : can set to any string you input, in addition to the current history event number, i.e, %h as in csh;url: list the course web site hour : list class times room : list classroom location desp : list the description of this course text: list the textbook ref: list the reference books prof: list the professor's name pol: professor's office location poll: professor's office hours pma : professor's email address ta : list the TA's name tol: TA's office locationtoh : TA's office hours tma : TA's email address history : list history of events up to the number you set help : list all the available commands exit or quit: exit CSC4420 shell

Answers

According to the question, a simple single thread CSC4420 shell, are given below:

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#define MAX_HISTORY 50

char history[MAX_HISTORY][MAX_HISTORY];

int history_count = 0; // count of history

void print_prompt(){

char prompt[20];

printf("CSC4420 Shell>");

scanf("%s", prompt); // get user input

if(strcmp(prompt,"") != 0)

 printf("CSC4420 %s %d>", prompt, history_count);

else

 printf("CSC4420 Shell>");

}

void print_url(){

printf("Course website: http://www.csc4420.org\n");

}

void print_hour(){

printf("Class times: Tuesday and Thursday 2:00PM to 3:15PM\n

What is single thread?

Single thread is a type of programming model where only one thread of execution occurs at any given time. This means that only one task can be processed at a time, and no other tasks can be processed until the current one is completed. Single threading can be beneficial when programming for applications that do not require multiple threads, as it is simpler to program and less resource intensive.

To learn more about single thread

https://brainly.com/question/29851066

#SPJ1

What are the characteristics of a physical network topology?
[Choose all that apply)

A physical network topology displays the physical
location of devices

A physical network topology is a representation of the
logical network

A physical network topology displays the actual
layout of the network

A physical network topology is a diagram of the
network

Answers

The correct option is: A physical network topology is a diagram of the

network.

The characteristics of a physical network topology include displaying the physical location of devices, displaying the actual layout of the network, and being a diagram of the network. A physical network topology provides a visual representation of the physical layout of the network and the location of devices such as computers, routers, and switches. It represents the actual physical connections between devices, including cables, routers, and switches. A physical network topology does not represent the logical network, which refers to the flow of data between devices and the network protocols that govern communication between devices.

To know more about topology visit:

https://brainly.com/question/30452844

#SPJ1

how to make pet feeder​

Answers

A pet feeder is a device used to store and dispense pet food at regular intervals, providing an automated feeding solution for pets. See how to make one below.

Here are steps on how to make a Pet Feeder

To make a pet feeder, you will need:

A container for storing pet foodA mechanism for dispensing the food, such as a hopper or conveyor beltA power source to operate the dispenser, such as a battery or electrical outletA feeding schedule or timer to dispense food at specific timesA means of adjusting the portion size, such as a dial or programming interfaceA food bowl or tray for serving the dispensed food to the pet.

With these components, you can assemble a pet feeder that can automatically dispense food at scheduled intervals, ensuring your pet is fed regularly.

Learn more about Pet Feeder:

https://brainly.com/question/28963533

#SPJ1

Devin is arranging a scavenger hunt for five of his friends, but some of them are much better at solving clues than others, so he wants to give some of them a head start.

Everyone knows that Emil is the slowest, but with his other friends there are a few things to think about:

Before John can start, Taylor must get a head start
Before Nkosi can start, Emil must get a head start
Before Tanya can start, Nkosi and John must both have a head start
Before Taylor can start, Nkosi and Emil must both have a head start

In what order should Devin’s friends start the scavenger hunt? Explain how you went about figuring out the order.

Answers

We need to go backwards from a given beginning point in order to determine the sequence in which Devin's pals should begin the scavenger hunt.

What does solving clue mean?

Finding the solution to a problem or enigma is made easier by a clue.

Taylor ought to start first since we are aware that John cannot begin until Taylor has had a head start.

Next, Nkosi should start second because we already know that she needs to get going before Tanya, who should start first.

Following that, we know that Emil must start first before Nkosi, so Emil should go off third.

Finally, since Tanya cannot start until Nkosi and John have both gotten off to a head start, John should go first and Tanya should go last.

Thus, the order in which Devin’s friends should start the scavenger hunt is Taylor, Nkosi, Emil, John, and Tanya.

For more details regarding clues, visit:

https://brainly.com/question/24173765

#SPJ9

The state of north carolina is interested in the number of homes in the state that have wifi access. in order to collect a sample, they randomly select 500 homes from each of the counties in the state. which of the following sampling methods most closely matches the one demonstrated in this example?

Answers

Stratified sampling data, as the state of North Carolina is randomly selecting 500 homes from each of the counties in the state.

Stratified sampling is a method of sampling in which the population is divided into sub-groups (strata) based on similar characteristics and then a sample is taken from each sub-group, or stratum. This method of sampling closely matches the example provided in which the state of North Carolina is randomly selecting 500 homes from each of the counties in the state. By doing this, they are essentially creating sub-groups based on the county and then taking a sample from each sub-group. This method of sampling is useful because it allows for better representation of the population as a whole, as it ensures each sub-group, or county in this case, is represented in the sample. Additionally, this method of sampling can also help to reduce the margin of error which can be helpful for obtaining more accurate results.

Learn more about data here-

brainly.com/question/11941925

#SPJ4

Proportional spacing replaced what other kind of spacing?


parallel spacing


monospacing


one-to-one spacing


fixed spacing

Answers

Answer:

Explanation:

Proportional spacing replaced fixed spacing.

2. Create a Java program that asks the user for three words
using the Scanner class. The program should display
those words in alphabetical order.

Answers

Explanation:

import java.util.Scanner; · public class Alphabetical_Order · { · public static void main(String[] args) · { · int n; · String temp; · Scanner s = new Scanner(System.

in a java program in chapter 3 .unit testing of a class.write a unit test for addinventory(), which has an error. call redsweater.addinventory() with argument sweatershipment. print the shown error if the subsequent quantity is incorrect. sample output for failed unit test given initial quantity is 10 and sweatershipment is 50:

Answers

The given unit test calls the add Inventory method on the Red Sweater object with an argument of 50 . The expected output is “Error: the subsequent quantity cannot be negative.

What is the Inventory ?

Inventory, also known as stock or store, is the goods, materials and products that are on hand and available for sale, use or consumption. It is the physical material that is available for sale or use in the production of goods and services. Inventory is an important part of any business as it affects production, sales, cost of goods sold, and customer satisfaction. In order for a business to operate efficiently and effectively, it must maintain an accurate and up-to-date inventory of items.

public static void testAddInventory(){

 int initialQuantity = 10;

 int sweaterShipment = 50;

 RedSweater redSweater = new RedSweater(initialQuantity);

 try {

   redSweater.addInventory(sweaterShipment);

 } catch (Exception e) {

   System.out.println("Error: the subsequent quantity cannot be negative");

 }

}

To learn more about Inventory

https://brainly.com/question/26977216

#SPJ1

Other Questions
What would be the best vertical axis title for this graph?a.Car sales for 2008b.Make and modelc.Yeard.FordPlease select the best answer from the choices providedABCD please and answers please just need help Samir bought snacks for his team's practice. He bought a bag of popcorn for $1.67 and a 24-pack of juice bottles. The total cost before tax was $31.19. Write and solve an equation which can be used to determine x, how much each bottle of juice cost. Name2-Step Word ProblemsThere were 24 polar bears and 38penguins swimming in the ocean. 15polar bears got out of the water.How many polar bears and penguinsare left playing in the water?polar bears and penguinsMy brother made 46 snowballs and Imade 59 snowballs. My sister joinedus and made 25 more snowballs.How many snowballs do we havealtogether?iMy mother had a collection of 51snow globes. She received 8 moresnow globes for her birthday. Mybrother and I started fighting andbroke 12 snow globes. How manysnow globes does my mother haveleft?snowballssnow globes-ate:There were 83 adult penguins and69 baby penguins playing on the hill.55 mother penguins went home.How many penguins are left playingon the hill?penguinsi A vendor conducting a pilot program with your organization is called: ________ PLEASEEEEE HELP I ONLY NEED NUMBER 1 If the diameter of the pie is ten inchefls, what is the approximate arc length of one slice of pie?A.1.67 inchesB.13.08 inchesC.(c) 3.14 inchesD.D 5.24 inches The investigating officer asked manyfrom the witness.a) probing... elicit2. At the assembly, thea) discreditedb) interesting... obtainprincipalb) denounced4. A good teacher should be able to senseunderstanding him or her.a) clearly3. The speech which he delivered at the function was sonotwith it.a) lengthy... argue b) concise... relateb) quicklymotives.b) ulteriorquestions intended toc) unusual... test8. The gradual depletion of the ozone layer isa) obviousb) undisputedthe students' unruly behaviour at the soccer match.d) reprimandedc) depreciatedthat the audience couldd) abstract... identifyc) cleverly5. Based on instructions they received, the undercover agents tried to discover the headquartersgang whose activities were causing much concern.of aa) shadyb) strangec) wickedd) clandestine10. Reggae music which ispeople.a) attributedc) wordy... copeb) familiarthe truth6. Because ofrespect the captains of the two teams did not engage in hostile andaggressive dialogue at the meeting.a) properb) humblec) mutuald) affectionate7. Your new acquaintance's zealous interest in your business affair leads me to think that hemay havea) noblec) speciald) selfishevidence of global warming.c) overwhelming d) inevitableby stark poverty and9. The problems of crime in the inner city have beenunemployment.a) developedb) introducedd) searching... extractwhether or not his students ared) intuitivelyc) promotedd) exacerbatedto Jamaica is enjoyed internationally by all classes ofc) indigenousd) connected what happens to the brightness of bulb a if you replace bulb b with a short circuit? Select the correct answer from each drop-down menu.Throughout the late eighteenth century and the early nineteenth century, most parts of Europe had a monarch who claimed to have the right torule fromvThe monarch's accepted legitimacy led to peace and stability. However,philosophersquestioned a monarch's right to rule because they believed that individuals should determine government leadership through practices such aspopular sovereignty. what piece of lab equipment would you use to estimate the volume of a drop of water? the focal length of the lens of a simple digital camera is 5.7 mm, and it is originally focused on a flower 1.5 m away. in what direction must the lens be moved to change the focus of the camera to a tree 100 m away? 13. Communicate and Justify A sequence starts with 16. The pattern is divide by 2. Another sequence starts with 1. The pattern is multiply by 2. Do the two sequences have the same number in the same position? Explain. How do you factor with a leading coefficient greater than 1? On a dry winter day, if you scuff your feetacross a carpet, you build up a charge and geta shock when you touch a metal doorknob.In a dark room you can actually see a sparkabout 2 cm long. Air breaks down at a fieldstrength of 3 10^6 N/C.How much charge have you built up? Assume that just before the spark occurs, all thecharge is in your finger, drawn there by induction due to the proximity of the doorknob.Approximate your fingertip as a sphere of diameter 1.59 cm, and assume that there is anequal amount of charge on the doorknob 2 cmaway.Answer in units of C. There is a pair of vertical angles where 1=106 and 2=3x75. What equation can you write to solve for x The world flow of foreign direct investment between 1990 and 2017 increased 600 percent. If a company decides to establish a new operation in a foreign country, that company has engaged in A) greenfield investment B) acquisition franchise C) artangement D) censing arrangement a capacitor restores energy u1 when it holds charge q. the same capacitor stores energy u2 when it holds charge 16q. what is the ratio u2/u1? What might be a counter argument to the claim : Math is the most important school subject All of the following constructions start with a line segment except...O constructing a 45 angleO constructing a 30 angleO constructing congruent angles constructing equilateral triangles