Find Jobs
Hire Freelancers

Data Structures Assignment

$10-30 USD

Closed
Posted over 10 years ago

$10-30 USD

Paid on delivery
Write a program that computes an invoice for purchasing shares of stock. A brokerage company has implemented policy to encourage investors to buy shares in even lots of 100. Therefore, the minimum order is 100 shares of stock. The commission charge for the first 100 shares is $2.55. An additional commission of 2 cents per share is charged for all shares over 100 shares. Requirements: The program must: • Define an integer constant that holds the minimum number of shares that can be ordered. • Define two floating point constants that will hold: o The minimum order commission o The commission for each share over the minimum order • Define a string constant for the investor’s name – use YOUR name (e.g., "Samantha Washington") • Define two character constants for the investor’s initials – use YOUR initials (e.g., 'S' and 'W') • Define an integer variable to store the total number of shares purchased (read from the user) • Define an floating point variable to store the cost of one share of stock (read from the user) • Define two floating point variables to store parts of the total cost. o The cost of all shares ordered o The commission charged for additional shares over the minimum order • Display a program description, followed by several prompts and input statements to read the total number of shares purchased from the user, and the price per share. o You may assume that the number of shares entered by the user will always be at least as many as the minimum order requirement Sample Input Stock Purchase Invoice Program Enter number of shares purchased: 176 Enter the price per share: 4.39 • Calculate the three parts of the total cost. • Add all of the above costs together to determine the total bill. • Add any other variable definitions or calculation statements you think are needed to perform the task • Output statements to display the results to the console, in the following format: Investor: Samantha Washington (SW) Shares purchased: 176 Price per share: 4.39 Cost for all shares 772.64 Commission for minimum order 2.55 Commission for additional shares 1.52 -------- Total Billed to Investor Account: 776.71 NOTES: o Display a few blank lines to separate the input from the output. o The dollar figures in the totals column should all line up on the decimal point. o If only the minimum number of shares is purchased, the commission for additional shares will be 0.00. Thank you for your help and I hope to hear from you soon.
Project ID: 5062862

About the project

37 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
37 freelancers are bidding on average $23 USD for this job
User Avatar
Hello. I'm C++ expert and I've completed many similar assignment on this site. And I'm able to complete your assignment in few hours.
$23 USD in 1 day
4.9 (1809 reviews)
7.9
7.9
User Avatar
Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my Java skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like to help you get this project done if you would give me the opportunity. I am a computer science professor and practitioner and this assignment is one of the fields that I teach very well so I can assure you an accurate result.
$30 USD in 0 day
4.9 (959 reviews)
7.6
7.6
User Avatar
Nie złożono jeszcze oferty.
$30 USD in 3 days
5.0 (105 reviews)
7.3
7.3
User Avatar
Hi Sir, I am ready to work for you.I have 9 years of experience in C/C++ , java, PHP and, MySQL. please see some of my works also check my reviews you will get better idea about my skill.I deliver quality work within time frame. Please visit my profile once. Thanks with regards, Amit
$35 USD in 1 day
4.9 (136 reviews)
7.1
7.1
User Avatar
Hi, I am C++ expert and can surely help you with this project. Please let me know if you are interested. Thank you
$23 USD in 1 day
4.8 (312 reviews)
7.1
7.1
User Avatar
Can help... I am an Expert... Please start a Discussion with me and we can get started from there... Please check the past projects I have handled and check my reviews for what employers have to say about my work... Can start right now...
$100 USD in 3 days
5.0 (34 reviews)
6.4
6.4
User Avatar
Hello, I'm an expert C# developer. I read and understood your requirements. I can prepare a Console Application coded in C# to do the requirements. I'll comment the Code so it's easy for you to understand. I'll be available for you to test the application.
$14 USD in 0 day
5.0 (39 reviews)
5.6
5.6
User Avatar
Hey,we can do this in Java... please let us know if you are interested. thank you. please reply.....................................:)
$25 USD in 3 days
4.9 (66 reviews)
5.3
5.3
User Avatar
Hey, i am a postgraduate student in computer science , this is an easy task for me and i can provide you the solution in minimum time and minimum complexity using all the concept of data structure and algorithms, program will be well commented and modular so that you can easily understand the functionality. eagerly waiting for ur reply. Thanks Arpit
$22 USD in 1 day
4.9 (24 reviews)
4.8
4.8
User Avatar
Hi! I can complete this for you, and provide you the codes within an hour. I am proficient in C and C++. I can do it it any of them, just let me know in what language you need the code to be. Please let me know, and I will finish this within an hour. Thank You!
$20 USD in 0 day
5.0 (16 reviews)
4.8
4.8
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
4.8 (42 reviews)
5.0
5.0
User Avatar
Hello, I understood all the requirements. I can do this assignment. You can check my reviews, I have done many of this kind assignments. I will finish it within 4 hours.
$20 USD in 0 day
5.0 (38 reviews)
4.8
4.8
User Avatar
Hi, I am a graduate in CS and working as a C++/Java programmer for 3+ years. I have done lots of assignments both in academic courses and in freelancer.com. I assure you of clean, efficient code with proper comment and documentation. thanks
$35 USD in 2 days
4.5 (30 reviews)
4.9
4.9
User Avatar
Hello, I'm Ahmed Abdallah a fourth year student at computer and systems engineering department at Alexandria university. I'm a java expert (3+ years of experience). I'm very good at android, C/C++, data structures, algorithms and OOP concepts. I can do this job in few minutes. We may contact via skype. PM for more details. Let's start right now.
$25 USD in 1 day
4.9 (13 reviews)
4.1
4.1
User Avatar
I am an MSc. Comp Science final year student with excellent knowledge in Data Structures and Algorithms as well as programming. Im looking foward to working with you
$25 USD in 3 days
4.9 (13 reviews)
3.7
3.7
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
5.0 (4 reviews)
1.4
1.4
User Avatar
Hello, I can do what you require, I have good experience in programming so it is not a problem for me to finish it quickly. Cheers, Jorge
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am really good at c programming.I have completed my engineering i will finish the program within 2 to 3 days.i have a certification in C.i could really help you out with this assignment
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I'm a 17-year-experienced C++ Engineer and also TEACHER of C++ and related topics. Can do this for you within 1 hour and send it to you.. :) Best wishes. D
$17 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I am new to Freelancer.com and I would like to start with some easy projects in orde to start building some (positive) history. I can finish this project very quickly (and make it to compile in Linux and Windows). You would have to give me the details about the OS needed as well as which libraries must be used/not used.
$25 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Irvine, United States
5.0
2
Payment method verified
Member since Jul 24, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.