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

  Role of it in the contemporary business organization

Understand the central role of IT in the contemporary business organization. Understand the impact of the World Wide Web on the management of business

  Create a program that uses a menu with options

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to store and print information entered.

  Adventure works database

Write a query that outputs all of the columns and all of the rows from the Product table (in the Production schema) of the Adventure Works database.

  Write a program in matlab and vb to ask

Write a program in Matlab and VB to ask the user the maximum error emax (e.g., 0.1, 0.01, 0.05, etc.), keep adding terms in S, until the following condition is satisfied: emax > |S - Sk| Print the minimum number of k to satisfy the above condition..

  Apply the dynamic programming algorithm

Apply the dynamic programming algorithm to find all the solutions to the change-making problem for the denominations 1, 3, 5 and the amount n = 9

  What is the sustainable growth rate

Last year Lakesha's Lounge Furniture Corporation had an ROE of 18.2 percent and a dividend payout ratio of 24 percent. What is the sustainable growth rate?

  Create the computer system needed to store information

create the computer system needed to store and organize the information they collect. Whodunit would like your company to design a system to help them categorize, sort, store, and otherwise manipulate the thousands of artifacts they collect using ..

  Data and command signals from mission control

Need to analysis everything and have to write report by referring the information available on internet. The final project for our EE 413 course this quarter will be as follows.... You are the chief systems engineer for a new project that involve..

  Write a script to construct this graph

Verify the answer by manually executing the BFS and Dijkstra's algorithms.

  How are they different from each other

Explain, in one paragraph, the origin of the SIP protocol and the H.323 protocol suite, respectively. How are they different from each other? Which protocol is becoming more popular than the other?

  Decide which of the following identifier forms

Decide which of the following identifier forms is most readable, and then support the decision. SumOfSales Sum_of_sales SUMOFSALES

  Http server may initiate interaction client true or false

In HTTP, a server may initiate an interaction with the client. a)Answer True b)False

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