Calculate and display the fee for a bus passenger

Assignment Help C/C++ Programming
Reference no: EM13907383

You are required to calculate and display the fee for a bus passenger. The fee for an adult is RM15.00 and a child is RM8.00 each. However, an adult 50 years old and above will get 10% discount from the adult fee. The bus provides 20 seats for adults, 7 seats for adult above 50 years old and 13 seats for children.

Reference no: EM13907383

Questions Cloud

Which element of coso enterprise risk management framework : Which element of the COSO enterprise risk management framework is most closely associated with each of the following- ALG Corporation bonds key employees and Based on previous experience, TRG Corporation's management believes the risk of inventory sh..
The stocks dividend is projected to increase : Ewert Enterprises' stock currently sells for $30.50 per share. The stock’s dividend is projected to increase at a constant rate of 4.50% per year. The required rate of return on the stock, rs, is 10.00%. What is Ewert's expected price 3 years from to..
What is the portfolio standard deviation : An investor purchases an asset on October 26 2011 for $50,000, and sells it for $85,000 the next year. The asset generated cash flows of $10,000 over this period. What is the portfolio standard deviation? What is the expected (use arithmetic average)..
Full program using c programming language : (a) Write a pseudo-code to solve this problem. (b) Write a full program using C programming language to solve this problem.
Calculate and display the fee for a bus passenger : You are required to calculate and display the fee for a bus passenger. The fee for an adult is RM15.00 and a child is RM8.00 each. However, an adult 50 years old and above will get 10% discount from the adult fee.
Prepare a corrected unadjusted trial balance as of january : Prepare a corrected unadjusted trial balance as of January 31 of the current year. Does the fact that the unadjusted trial balance in (1) is balanced mean that there are no errors in the accounts Explain.
Calculate the expected price of the stock : A stock you are interested in paid a dividend of $1 last year. The anticipated growth rate in dividends and earnings is 20% for the next year and 10% the year after that before settling down to a constant 5% growth rate. The discount rate is 12%. Cal..
Using microsoft visio or an open source alternative : Using Microsoft Visio or an open source alternative such as Dia, update the diagram to include two (2) error-handling pathways. Note: The graphically depicted solution is not included within the required page length.Produce a narrative which describe..
Discuss job analysis and job descriptions : Discuss job analysis and job descriptions

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function that collects integers from the user

Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input (ML only).

  Prevent illegal moves without crashing

Your program must gracefully handle the case when a player tries to add a non-number to a square, or add a number that violates the Sudoku rules. It should prevent illegal moves without crashing.

  Which is not a valid name for a method or function

Which is not a valid name for a method or function? Which of the following is a valid overloaded version of this method

  Create a program with just one function

Create a program with just one function that uses the selection sort to sort a linked list IN C++

  Compare and contrast the meaning ofenterprise architecture

Compare and contrast the meaning ofenterprise architecture versusdistributed system? Provide at least 1 example each of enterprise architecture and a distributed system? Discuss the advantages and disadvantages of distributed systems in a business en..

  Determines whether the ascii value is valid for the base

Accept a number base value in another register. Determines whether the ASCII value is valid for the base. Use the AsciiToDigit procedure

  Squares, triangles, circles and ellipses

write a program which will answer a pair of questions for squares, triangles, circles and ellipses. A square is defined by its lower left corner ( S L L x , S L L y ), and the length of one side  S W .

  Tabulate unadjusted function points

a) List type of Input, output counts, File names, query and interfaces. Tabulate them into simple, medium and complex. b) Tabulate Unadjusted function points giving a total of them You can assume some data points or features as appropriate to drive y..

  The goal of this project is to create

The goal of this project is to create a simple command line program that reads in a single word from the command line (use the "int argc, char * argv[]" approach discussed in class and in previous projects) and stores the unique letters of that wo..

  Write a program that draws a picture of a house

Write a program that draws a picture of a house. It could be as easy as the accompanying figure, or if you like, make it more elaborate (3-D, skyscraper, marble columns in the entryway, whatever).

  Indexed addressing to reverse the elements

Use a loop with indirect or indexed addressing to reverse the elements of the integer array in place - Can you implement a program to indexed addressing to reverse the elements of an array?

  Create a program that will round a floating point

Create a program that will round a floating point value to a specified number of decimal places as input by the user. To perform the actual calculation, write a function that takes the user's value and the number of decimal places as input paramet..

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