A bit confused on where to begin this program. I'm confused by the information I'm being given I think? Honestly I'm not sure. I need to write the program in pseudocode."A dramatic theater has three seating sections. It charges section A seats 20$ each, section B seats 15$ each, and section C seats 10$ each. There are 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program that asks for the number of tickets sold in each section, then display the amount of income generated from ticket sales. The program should validate the numbers from each section."I think I know how to finish the program but I'm not sure where I should start. I don't know what variables to declare and I don't know if I need to declare ALL the variables, if any, before the "While" loop.
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
A bit confused on where to begin this
"A dramatic theater has three seating sections. It charges section A seats 20$ each, section B seats 15$ each, and section C seats 10$ each. There are 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program that asks for the number of tickets sold in each section, then display the amount of income generated from ticket sales. The program should validate the numbers from each section."
I think I know how to finish the program but I'm not sure where I should start. I don't know what variables to declare and I don't know if I need to declare ALL the variables, if any, before the "While" loop.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps