Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using C programming language Part 1 Ticket discount ( if statements / elif ) Tell the user that tickets cost 1 4 dollars . Then

using C programming language Part
1
Ticket discount
(
if statements
/
elif
)
Tell the user that tickets cost
1
4
dollars. Then ask the user his age. If the user's age is
<
1
8
tell them that they can get a
1
0
dollar admission for being a minor, If the user
s age is
>
=
6
5
,
tell them that they can get a
1
0
dollar admission for being a senior citizen, lastly let them know if they have to pay full price.
Alternative: Do I have enough? User wants to buy your product ask him how much money he has, calculate the price of your product plus its
8
%
sales tax and then tell him if he can buy it or not and if he can then congratulate him on his purchase and let him know how much money he has left now

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago