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
Topic Video
Question
Hi I'm supposed to list the items like this
List the item ID, description, and category for each pair of items that are in the same category. (For example, one such pair would be item FS42 and item PF19, because the category for both items is FSH.) Order the output by category.
the answer i saw on here is wrong it's supposed to show as
CATEGORY | ITEM_ID | DESCRIPTION |
---|---|---|
BRD | BC33 | Feathers Bird Cage (12x24x18) |
BRD | KH81 | Wild Bird Food (25 lb) |
CAT | CA75 | Enclosed Cat Litter Station |
CAT | SP91 | Small Pet Carrier |
FSH | FS42 | Aquarium (55 Gallon) |
FSH | PF19 | Pump & Filter Kit |
BUT IT SHOWS AS
TEM_ID | DESCRIPTION | DESCRIPTION | CATEGORY |
---|---|---|---|
KH81 | Wild Bird Food (25 lb) | Feathers Bird Cage (12x24x18) | BRD |
SP91 | Small Pet Carrier | Enclosed Cat Litter Station | CAT |
DT12 | Dog Toy Gift Set | Dog Feeding Station | DOG |
LD14 | Locking Small Dog Door | Dog Feeding Station | DOG |
LD14 | Locking Small Dog Door | Dog Toy Gift Set | DOG |
LP73 | Large Pet Carrier | Dog Feeding Station | DOG |
LP73 | Large Pet Carrier | Dog Toy Gift Set | DOG |
LP73 | Large Pet Carrier | Locking Small Dog Door | DOG |
UF39 | Underground Fence System | Dog Feeding Station | DOG |
UF39 | Underground Fence System | Dog Toy Gift Set | DOG |
UF39 | Underground Fence System | Locking Small Dog Door | DOG |
UF39 | Underground Fence System | Large Pet Carrier | DOG |
PF19 | Pump & Filter Kit | Aquarium (55 Gallon) | FSH |
FS39 | Folding Saddle Stand | Fly Mask with Ears | HOR |
QB92 | Quilted Stable Blanket | Fly Mask with Ears | HOR |
QB92 | Quilted Stable Blanket | Folding Saddle Stand | HOR |
WB49 | Insulated Water Bucket | Fly Mask with Ears | HOR |
WB49 | Insulated Water Bucket | Folding Saddle Stand | HOR |
WB49 | Insulated Water Bucket | Quilted Stable Blanket | HOR |
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 3 steps
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
it shows too many results it's just to go up to the last FSH like i showed in the picture.
BRD | BC33 | Feathers Bird Cage (12x24x18) |
BRD | KH81 | Wild Bird Food (25 lb) |
CAT | CA75 | Enclosed Cat Litter Station |
CAT | SP91 | Small Pet Carrier |
DOG | AD72 | Dog Feeding Station |
DOG | DT12 | Dog Toy Gift Set |
DOG | LD14 | Locking Small Dog Door |
DOG | LP73 | Large Pet Carrier |
DOG | UF39 | Underground Fence System |
FSH | FS42 | Aquarium (55 Gallon) |
FSH | PF19 | Pump & Filter Kit |
Solution
by Bartleby Expert
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
it shows too many results it's just to go up to the last FSH like i showed in the picture.
BRD | BC33 | Feathers Bird Cage (12x24x18) |
BRD | KH81 | Wild Bird Food (25 lb) |
CAT | CA75 | Enclosed Cat Litter Station |
CAT | SP91 | Small Pet Carrier |
DOG | AD72 | Dog Feeding Station |
DOG | DT12 | Dog Toy Gift Set |
DOG | LD14 | Locking Small Dog Door |
DOG | LP73 | Large Pet Carrier |
DOG | UF39 | Underground Fence System |
FSH | FS42 | Aquarium (55 Gallon) |
FSH | PF19 | Pump & Filter Kit |
Solution
by Bartleby Expert
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Similar questions
- Insert these values 8, 35 and 99 (in this order) in the given BST. Show the final BST after inserting those three items. Draw the new BST with the new items added. / 30 64 1 75 / \/ \ 10 40 70 80 // \ \ 38 68 73 90 Answer:arrow_forwardPlease please with this using javaarrow_forwardThe following code is used to plot a heatmap and the result is shown below. The range of the data that represented using the heatmap is of the range from 0 to 600. It can be seen that the numbers over 400 are all shown in the same color. How would you improve the figure to allow the data with higher values to be stood out? inpert talatlaelat a plt rughts s. leattasetuts', ta ta ruts tiure tt. .heataptaftaghts, in, ptt.shol Ha gers -300 -250 200 -100 O a. Set the parameter vmax to a smaller number. O b. Reverse the color bar. Oc. Set the parameter vmax to a larger number. O d. Show the annotation on the figure.arrow_forward
- Please help me with my assignment, I need to submit it by tonight. I don't get an output with my list, please help. def make_pizza(*toppings):"""Print the list of toppings that have been requested."""print("\nMaking a pizza with the following toppings:")make_pizza(*topping('pepperoni','mushroom','green peppers','extra cheese')print(make_pizza()[1])arrow_forwardCome up with a nested loop that prints the following table of numbers out. Don’t worry about getting the columns lined up properly (you can use \t after each number to help). 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 This is effectively a multiplication table, where each number is its row number * its column number. To get this, you can take the 1 2 3 4 example pattern from the slides and modify it. Make it 5 rows instead of 4 and adjust the columns to print 1-5 instead of 1-4. Lastly, modify the print statement to print the row number * the column number instead.arrow_forwardThe average amount Sold function is not run as expect. Please fix it. The input file: sales.txt header in picture. It is over 5000 char. I can't copy. 13492785 2017 Jane North; 1000 78534520 2012 Tim South; 95020192756 2017 Linda East; 15000 19273458 2012 Paul West; 500078520192 2017 Mary Jane Doe; 5001 32278520 2012 Victor Smith; 799514278520 2012 Mary Johnson; 12056192785 2017 Tom Baker; 1300 88278529 2012 Diana Newman; 150089278527 2012 William Peterson; 1420098278528 2012 Jim Gaddis; 120099192785 2017 Laura King; 1000 43278524 2012 Ann McDonald; 2000 The output expect: in picture. #include "Sales.h"#include <iostream>#include <sstream>#include <iomanip>#include <fstream>#include <string>using namespace std; const int MAX_SIZE = 30; void readData(string fileName, Sales salesArr[], int n);double calcSalesAvg(Sales salesArr[], int n);void displayOverAvg(Sales salesArr[], int n, double avg);void writeReport(Sales salesArr[], int n, string…arrow_forward
- text file 80 1 2 3 100 100 100 1001 0 2 100 3 4 100 1002 2 0 4 4 100 5 1003 100 4 0 100 100 4 100100 3 4 100 0 3 3 3100 4 100 100 3 0 100 1100 100 5 4 3 100 0 2100 100 100 100 3 1 2 0 My code below. I am getting an error when trying to create my adjacency matrix. i dont know what i am doing wrong def readMatrix(inputfilename): ''' Returns a two-dimentional array created from the data in the given file. Pre: 'inputfilename' is the name of a text file whose first row contains the number of vertices in a graph and whose subsequent rows contain the rows of the adjacency matrix of the graph. ''' # Open the file f = open(inputfilename, 'r') # Read the number of vertices from the first line of the file n = int(f.readline().strip()) # Read the rest of the file stripping off the newline characters and splitting it into # a list of intger values rest = f.read().strip().split() # Create the adjacency matrix adjMat = []…arrow_forwardIn Java Write a program that prints the 128-character ASCII table. It should print the tablein eight tab-separated columns. The first column contains a "Dec" heading (fordecimal number) with the numbers 0 through 31 below it. The second columncontains the ASCII characters associated with the numbers 0 through 31. The nextcolumns contain the subsequent numbers and associated ASCII characters. See thebelow sample output for details. Be aware that that output was produced by aprogram running in a console window in a Windows environment. If you runyour program in a different environment, the first 32 characters and the lastcharacter will probably be different from what’s shown below.Note that some characters display in a non-standard manner. For example, thenumber 7 corresponds to a bell sound. You can’t see a sound, but you can see thevacant spot for 7’s character in the below table. The number 8 corresponds to thebackspace character. You can’t see a backspace, but you can see how the…arrow_forwardOutput integer's digits Given an input positive integer, output each digit on its own line, starting with the rightmost digit. Ex: If the input is 935, the output is: 5 3 9 Hints: Use the mod operator (%) to get the rightmost digit. Mod by 10 to get the rightmost digit. Use a loop that keeps a current dividend (the number being divided). In each iteration, output the rightmost digit, then update the divisor by dividing by 10. End the loop when the divisor is 0. in javaarrow_forward
- Lines of gery code 1 - 10 CAN NOT BE EDITED. Just need to be completed.arrow_forwardYou will be reading in a series of names from the keyboard. Count how many matching pairs there are – a matching pair is when two consecutive names are equal regardless of their case - and print the pairs. Input stops when the word ‘end’ is entered (also ignoring case). For example, Jack Jose jose Faith Robert Cynthia cynthia Cynthia Pierre ENd would print: Jose jose Cynthia cynthia cynthia Cynthia There were 3 matching pairs.arrow_forwardDO NOT COPY FROM OTHER WEBSITES Correct and detailed answer will be Upvoted else downvoted. Thank you!arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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