COMPUTERS AND TECHNOLOGY MIDDLE SCHOOL

You work for a shipping company and your manager receives orders from various customers everyday some existing ,some new .your manager wishes to establish a process to automate tracking the orders received by the company .you can assume the daily data arrives as lists/array/vector of strings and follows this exact format(note that customers may place separate orders in a single day): day_i=["Bob:100","Alice:100","Celia:110","Bob:20",etc.]
write a script that, when given the daily data will keep track of purchase amount for each customer. you can assume the data already exists in the memory

Answers

Answer 1
Answer:

Answer:

It's good to consider this as a dictionary, with key-value pair, or as a two-dimensional array.

And in the first case, the code will be as below:

day_i={'Bob':'100', 'Alice':'100','Celia':'110','Bob':'200'}

for k, v in day_i.items():

print(k, v)

Explanation:

The above code reads through each day, and each customer purchase amount in the form of Dictionary, and prints each customer name and purchase amount. And with little enhancement, we can create each day data, and print details of the day, as being asked by the user.


Related Questions

HIGH SCHOOL

The disk drive is a secondary storage device that stores data by ________ encoding it onto circular disks.

Answers

Physically encoding it.
HIGH SCHOOL

What is one reason the SOC categorizes occupations as it does? A. There is no rhyme or reason to the SOC system.
B. Industries are defined by what they produce.
C. People spend their careers moving from job to job within a single industry.
D. Similar occupations in different industries require similar skills.

Answers

C. People spend their careers moving from job to job within a single industry.

COLLEGE

Which utility program reads an assembly language source file and produces an object file? a. compiler

b. linker

c. assembler

d. loader

Answers

The utility program which reads an assembly language source file and produces an object file is; Choice C: Assembler

Assemblers are share quite some similarities to compilers in that they produce executable code.

However, An assembler is a utility program which converts assembly language into machine code. This is done by taking the basic commands and operations from assembly code and converts them into binary code that can be recognized by a specific type of processor.

Read more on Assemblers;

https://brainly.in/question/1586603

Answer:

Assembler

Explanation:

Assembler is a type of utility program that is used to change the assembly language to machine code. it utilized the commands from assembly code to change them to binary code.

it used to change 2 types of symbols like assembler symbol and programmer symbols.

it makes the work easily by converting the language code into a readable form to the operating system.

COLLEGE

Write a program that prints a greeting of your choice, perhaps in a language other than English.

Answers

Answer:

Explanation:

public class BrainlyQ {

 public static void main(String[] args) {

   System.out.println("Hola, Como Estas?");

 }

}

This is a simple program that will print the phrase Hola, Como Estas? to the console window, and the greeting is written in Spanish as opposed to writing it in English. This code is written in the Java Programming Language.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

Random Questions