Write a program that allows cindy to input the number

Assignment Help Data Structure & Algorithms
Reference no: EM13337963

1. One metric ton is approximately 2205 pounds. Write a program that prompts the user to input the amount of rice, in pounds, in a bag. The program outputs the number of bags needed to store one metric ton of rice.

2. Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service charges on the total amount for each transaction, buy or sell. When Cindy sells stocks, she would like to know if she gained or lost on a particular investment. Write a program that allows Cindy to input the number of shares sold, the purchase price of each share, and the selling price of each share. The program outputs the amount invested, the total service charges, amount gained or lost, and the amount received after selling the stock.

 

Reference no: EM13337963

Questions Cloud

Determine what is the particles new de broglie wavelength : A particle has a de Broglie wavelength of 2.7x10-10 m. Then its kinetic energy doubles. What is the particle's new de Broglie wavelength, assuming that relativistic effects can be ignored
Calculate the probability that the particle is detected : PSI (x) is the wave function for a particle moving along the x axis. Write the mathematical that will allow us to calculate the probability that the particle is detected in the inteval X=A to X=B
How many linear feet of shelf space are required : A standard computer CD holds approximately 700 million characters. Estimate how many linear feet of shelf space are required to store 700 million characters encoded as text (i.e., printed, bound books) rather than as electronic media.
Determine velocity v of a neutral particle moving with angle : A neutral particle moving with velocty, v, decays into two photons moving with angles, a1=30 degrees and a2=60 degrees with respect to the intial velocty of the particle. Find velocty v.
Write a program that allows cindy to input the number : One metric ton is approximately 2205 pounds. Write a program that prompts the user to input the amount of rice, in pounds, in a bag. The program outputs the number of bags needed to store one metric ton of rice.
Determine centerline and upper and lower control limits : When the robot welder is functioning properly, the natural gas cylinders being produced have an average burst strength of 3400 psi,with a standard deviation of 100 psi. Determine the centerline and the upper and lower control limits for a 3-sigma mea..
Evaluate each of the following statements : If x = 5, y = 6, z = 4, and w = 3.5, evaluate each of the following statements, if possible. If it is not possible, state the reason.
Write algorithm that allows the customer to enter amount : An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more than $300, the service charge is 4% of the amount over $300.
Least- squares regression line and interpret its slope : Determine the least- squares regression line and interpret its slope. Estimate,for a year during which 500,000 boats aresold,the number of boat trailers that would be sold. What reasons might explain why the number of boat trailer sold per year is le..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  System analyst

A huge, well regarded supplier of key raw materials to your corporation's production process requires a year-end summary report of totals purchased from it.

  Construct an entity-relationship model for the database

Construct an entity-relationship (ER) model for the database. Make sure you include in your model details of entities, relationships, attributes, keys and limits in participation.

  Working with physicists that hav an inert lattice structure

working with Physicists that hav an inert lattice structure, and they use this for placing charged particles at regual spacing along a straight line

  Determining hash value of modified file

Determine hash value of modified file look like, as compared with original hash value?

  Calculate shortest path-djkstra-s shortest path algorithm

With indicated link costs, use Djkstra's shortest path algorithm to calculate shortest path from E to all network nodes. Illustrate how algorithm works by computing table.

  Determine purpose of queue in breadth-first traversal

Following refer to breadth-first traversals of graphs and trees. a. Determine the purpose of queue in breadth-first traversal?

  Use of primitives helps remove ambiguities in algorithm

Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm. Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  How long would it take to fill the available storage space

How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

  Write a program that implements the linked list

Write a program that implements the linked list Include the Node struct, the typedef NodePtr statement, and the head_insert() function Then write a main() that does these steps: creates a head for the list.

  Devise a linear-time algorithm to count the parallel edges

Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudocode.

  Question about edge connectivity

The edge connectivity of an indirected graph is minimum number k of edges that must be removed to disconnect the graph.

  Identifying the location of rubric objectives

Code Comments are used to identify the location of rubric objectives, Code Formatting is used to raise the readability of the HTML Code.

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