subject

A movie theatre can hold 150 persons. The cost of a ticket is $40 each for adults (age 18 and over) and ) $30 each for a child (under 18 years of age). The age of each person is prompted for. Based on the age, the cashier calculate and print the cost of the ticket for each person. You must determine and print: 1) The number of adults who bought tickets. 2) The number of children who bought tickets. 3) Total money earned for the day.

Write a Pascal Program for the above situation.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
You know the right answer?
A movie theatre can hold 150 persons. The cost of a ticket is $40 each for adults (age 18 and over)...
Questions
question
Mathematics, 01.04.2020 02:53
question
Mathematics, 01.04.2020 02:54
question
Mathematics, 01.04.2020 02:54
question
History, 01.04.2020 02:54
Questions on the website: 13722362