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 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
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, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
question
Spanish, 03.02.2021 18:40
question
English, 03.02.2021 18:40
Questions on the website: 13722363