1) Pseudocode command the user to input the wrinkles allocate. lead the user to input the declines measuringter price. lodge the price of the crease. Calculate the equip for purchasing the stock. Calculate the bar sold for the stock. Calculate the consignment for interchange the stock. Calculate the development made from the stock. Display the appeal to buy the stock. Display the kick for purchasing the stock. Display the meter sold for the stock. Display the boot for selling the stock. Display the gain made from the stock. 2) Complete C++ code // This program is used by Global Warming, Inc. to aim // The cost, commision purchasing, amount sold, commision selling, profit made after selling stock and compensable two commissions #include <iostream> #include <iomanip> using namespace std; int main() { // unremitting for cost and amount charged const double COST_PER_SHARE = 32.87; const double CHARGE _PER_SHARE = 0.
02; // variable double parting, //The stocks share exchange_price, //The stocks sale price cost, //The cost of the stock commission_purchasing, //The commision for purchasing the stock amount_sold, //The amount sold of the stock commision_selling, //The commision for selling the stock profit; //The profit m ade on the stock // Set the desired outpu! t data format for numbers. cout << setprecision(2) << obdurate << showpoint; // Promt the user for the shares and sale price cout << Enter the number of share of the stock : ; cout << Share: ; cin >> share; cout << Enter the sale price of the stock (in RM) : ; cout << sale price: ; cin >> sale_price;...If you needful to get a full essay, order it on our website: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.