Mark is a stockbroker in New York City. He recently asked you to develop a program for his company. He is looking for a program that will calculate how much each person will pay for stocks. The amount that the user will pay is based on:


The number of stocks the Person wants * The current stock price * 20% commission rate.


He hopes that the program will show the customer’s name, the Stock name, and the final cost.


The Program will need to do the following:


Take in the customer’s name.

Take in the stock name.

Take in the number of stocks the customer wants to buy.

Take in the current stock price.

Calculate and display the amount that each user will pay.

A good example of output would be:

May Lou
you wish to buy stocks from APPL
the final cost is $2698.90

Answers

Answer 1

ok sorry i cant help u with this


Related Questions

when you look directly at a camera lens, it may seen like there is only one lens, but entering light actually passes through a series of lenses, or_____, that bend the light and send it on its way to be focused on the film or digital. chip

Frame
Optics
Flash
SD cARD

Answers

Answer:

The answer should be optics...

Explanation:

If aa person is known to have look at a camera lens straight and light passes via a number of lenses, or Optics.

What is Optics?

This is known to be an aspect  of physics that looks at the attributes and properties of light, such as its relationship with matter, etc.

Therefore,  If a person is known to have look at a camera lens straight and light passes via a number of lenses, or Optics.

Learn more about Optics from

https://brainly.com/question/18300677

#SPJ9

During TCP/IP communications between two network hosts, information is encapsulated on the sending host and decapsulated on the receiving host using the OSI model. Match the information format with the appropriate layer of the OSI model.

a. Packets
b. Segments
c. Bits
d. Frames

1. Session Layer
2. Transport Layer
3. Network Layer
4. Data Link Layer
5. Physical Layer

Answers

Answer:

a. Packets - Network layer

b. Segments - Transport layer

c. Bits - Physical layer

d. Frames - Data link layer

Explanation:

When TCP/IP protocols are used for communication between two network hosts, there is a process of coding and decoding also called encapsulation and decapsulation.

This ensures the information is not accessible by other parties except the two hosts involved.

Operating Systems Interconnected model (OSI) is used to standardise communication in a computing system.

There are 7 layers used in the OSI model:

1. Session Layer

2. Transport Layer

3. Network Layer

4. Data Link Layer

5. Physical Layer

6. Presentation layer

7. Application layer

The information formats given are matched as

a. Packets - Network layer

b. Segments - Transport layer

c. Bits - Physical layer

d. Frames - Data link layer

The Fast as Light Shipping company charges the following rates. Weight of the item being sent Rate per 100 Miles shipped 2kg or less. $0.25 Over than 2 kg but not more than 10 kg $0.30 Over 10 kg but not more than 20 kg. $0.45 Over 20 kg, but less than 50kg. $1.75 Write a program that asks for the weight of the package, and the distance to be sent. And then displays the charge.

Answers

Answer:

weight = float(input("Enter the weight of the package: "))

distance = float(input("Enter the distance to be sent: "))

weight_charge = 0

if weight <= 2:

   weight_charge = 0.25

elif 2 < weight <= 10:

   weight_charge = 0.3

elif 10 < weight <= 20:

   weight_charge = 0.45

elif 20 < weight <= 50:

   weight_charge = 1.75

if int(distance / 100) == distance / 100:

  d = int(distance / 100)

else:

   d = int(distance / 100) + 1

   

total_charge = d * weight_charge

print("The charge is $", total_charge)

Explanation:

*The code is in Python.

Ask the user to enter the weight and distance

Check the weight to calculate the weight_cost for 100 miles. If it is smaller than or equal to 2, set the weight_charge as 0.25. If it is greater than 2 and smaller than or equal to 10, set the weight_charge as 0.3. If it is greater than 10 and smaller than or equal to 20, set the weight_charge as 0.45. If it is greater than 20 and smaller than or equal to 50, set the weight_charge as 1.75

Since those charges are per 100 miles, you need to consider the distance to find the total_charge. If the int(distance / 100) is equal to (distance / 100), you set the d as int(distance / 100). Otherwise, you set the d as int(distance / 100) + 1. For example, if the distance is 400 miles, you need to multiply the weight_charge by 4, int(400/100) = 4. However, if the distance is 410, you get the int(400/100) = 4, and then add 1 to the d for the extra 10 miles.

Calculate the total_charge, multiply d by weight_charge

Print the total_charge

Consider the following method.


public int locate(String str, String oneLetter)

{
int j = 0;
while(j < str.length() && str.substring(j, j+1).compareTo*oneLetter < 0)
{
j++;
}
return j;
}

Which of the following must be true when the while loop terminates?

a. j == str.length()
b. str.substring(j, j+1) >= 0
c. j <= str.length() || str.substring(j, j+1).compareTo(oneLetter) > 0
d. j == str.length() || str.substring(j, j+1).compareTo(oneLetter) >= 0
e. j == str.length() && str.substring(j, j+1).compareTo(oneLetter) >= 0

Answers

Answer:

All

Explanation:

From the available options given in the question, once the while loop terminates any of the provided answers could be correct. This is because the arguments passed to the while loop indicate two different argument which both have to be true in order for the loop to continue. All of the provided options have either one or both of the arguments as false which would break the while loop. Even options a. and b. are included because both would indicate a false statement.

Other Questions
Click on a factor pair of 122 and 33 and 46 and 72 and 4 Why did Roman traders begin to ship goods back and forth around the Mediterranean Sea? Help plsssssssssssssssss a) If f(x) = 3x - 2, find f(x)b) Find f(13) A bake sale has 5 brownies for sale. Each brownie was cut into 4 slices. Each slice was sold for $7. What was the total amount earned for the sale of all the brownies? Given that f (x) = x^2 - 5x and g (x) x + 4 Calculate the resistance of an electric blanket that draws 9 A to transform 50 W of energy. In "The Chrysanthemums," the character of Elisa is different at the end of the story than she is at the beginning of the story. Describe Elisa as she is characterized at the beginning of the story. Then describe the way she is characterized at the end of the story. Explain why she changes from the beginning to the end of the story. Be sure to use specific examples from the text to support your answer. (15 points)Restate the Prompt as a topic sentence: In The Chrysanthemums, by John Steinbeck, the character of Elisa is different at the end of the story than at the beginning of the story.Specific details from the story to go along with how Elisa is characterized at the beginning of the story.Specific details from the story to go along with how Elisa is characterized at the end of the story.Why do these changes take place? True or False. A police officer pointing his weapon at someone is not considereddeadly force.TrueFalse Define:"mystagogy"P.S: This is a religon assignment The Day before the day before yesterday was two days after the day before my birthday. today is Thursday what day was my birthday Why do you think some white people in power considered Malcolm X a threat? (Write an equation to go with the problem) Miranda goes to the store to buy 3 apples and some rice. The total was 6.50. If the rice cost $5.00, what was the cost per Apple? 3. Bob the plumber charges $15 per hour plus a service fee of $40 for coming out to yourhouse. How much would plumber Bob charge for working 5 hours?A) S125B) $100C) $75D) $115 Catholics do not believe in the teaching sola SchipluidSelect one:They believe only the Pope is the infallible authority for the Christian faith.they believe it is not biblically or historically correctCatholics don't believe in reading the bible.They're still mad at Martin Luther Please help equation in picture(geometry) Based on the text in the chapter, which statement is the most accurate about sodapop and ponyboys relationship? Two answers. From the outsiders. Equipment with a book value of $83,500 and an original cost of $162,000 was sold at a loss of $32,000. Paid $106,000 cash for a new truck. Sold land costing $320,000 for $400,000 cash, yielding a gain of $80,000. Long-term investments in stock were sold for $91,400 cash, yielding a gain of $16,250. Use the above information to determine cash flows from investing activities. (Amounts to be deducted should be indicated with a minus sign.) X-8-3X-10Use distributive property Solve equation by using the quadratic formula.[x^{2} + 4x = -4a. x = -2b. x = -4c. x = -4, x = 4d. x = 0, x = 4