subject
Computers and Technology, 24.03.2021 18:00 giovney

Given two files named exactly "data1.txt" and "data2.txt" (no error checking needed) of names and scores print out the combined scores in alphabetical order by name. Note that the files will be formatted the same, but some names will be in both files and some names will only be in one file. For names in both files the scores need to be summed. The file format will be one header line followed by lines that have a name (string) and a number (int) separated by some unknown number of spaces. For output use this format string "{:10s} {:<10d}" Requirements:
(1) You must use a dictionary.
(2) You must use at least two functions that have a dictionary as an argument, e. g. read a file, print results.
For example, if data1.txt contains
Name Score
Joe 20
Mary 70
Rich 50
Jose 90
and data2.txt contains
Name Score
Sarah 80
Ming 20
Joe 65
Rich 30
The output will be:.
Name Total
Joe 85
Jose 90
Mary 70
Ming 20
Rich 80
Sarah 80
The program should be in Python...

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 24.06.2019 18:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
Jacking is a crime that takes place when a hacker misdirects url to a different site. the link itself looks safe, but the user is directed to an unsafe page
Answers: 1
You know the right answer?
Given two files named exactly "data1.txt" and "data2.txt" (no error checking needed) of names and sc...
Questions
question
Mathematics, 12.12.2020 16:00
question
Chemistry, 12.12.2020 16:00
Questions on the website: 13722363