Write a script to find the prices of each type of pen

Assignment Help Basic Computer Science
Reference no: EM131215401

As the enthusiastic and motivated student that you are, you decided to go out and buy plenty of pens for all your classes this semester. This spending spree unfortunately occurred before you realized your engineering classes seldom required the use of "ink". So now, you're left with four different types of pens and no receipt-you only remember the total amount you spent, and not the price of each type of pen. You decide to get together with three of your friends who coincidentally did the same thing as you, buying the same four types of pens and knowing only the total amount.

In order to find the price of each individual pen, you create a matrix called "pens", where each column represents a different type of pen and each row represents a different person.

1687_2e78271e-87f1-45e6-8118-59aa4d16c944.png

You then generate a column vector totals that contains the amount of money each of you spent on the pens:
totals = [19.60 18.78 25.59 19.26]'

Write a script to find the prices of each type of pen.

Reference no: EM131215401

Questions Cloud

Reasons for the great depression : Please answer the below question in the format listed below: Introduction to Civilization Evaluate the reasons for the Great Depression.
Find the joint pdf of u and v : Let and be independent zero-mean, unit-variance Gaussian random variables.- Consider forming the new random variable- Find the joint PDF of U and V.
Describe the mission values and core business practices : Determine from your research, at least two (2) HR strategies the company uses to ensure they acquire the needed talent to support their mission, vision, values, and core business practices. Provide support for your findings.
Understanding of period of history : Code of Hammurabi - describe what the document is and who the author(s) is and why it is important to our understanding of this period of history.
Write a script to find the prices of each type of pen : In order to find the price of each individual pen, you create a matrix called "pens", where each column represents a different type of pen and each row represents a different person.
Christopher columbus and pero vaz de caminha : The letters of Christopher Columbus to King Ferdinand of Spain are the first observations and descriptions of Caribbean peoples recorded by a European. Likewise, Pero Vaz de Caminha letter to King Manuel of Portugal is the first description we hav..
Internal evolution of a number of the english colonies : Religious controversy in the seventeenth century was a powerful force in the internal evolution of a number of the English colonies. Discuss how conflicts centering on religion shaped the colonies of Maryland, Massachusetts, and Rhode Island. Disc..
Gaussian random variable and bernoulli random variable : Let X be a Gaussian random variable and let  Y  be a Bernoulli random variable with Pr(Y=1) = p and Pr (Y=-1)= 1-p.- If X and Y are independent, find the PDF of Z=XY.
Hinduism compatible with capitalism and typical business : 1. Is Hinduism compatible with capitalism and typical business practices and teamwork? Why or why not? 2. What specific company practices might be adopted to make the workplace more appealing to those who practice Hinduism?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd