1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
valkas [14]
4 years ago
10

Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from

ticket sales. There are three seating categories at the stadium. Class A seats costs $20, Class B seats cost $15, and Class C seats cost $10. Console Output:
Computers and Technology
1 answer:
ValentinkaMS [17]4 years ago
5 0

Answer:

# prompt the user to enter number of ticket for class A

classAticket = int(input("Please enter number of ticket for class A"))

# prompt the user to enter number of ticket for class B

classBticket = int(input("Please enter number of ticket for class B"))

# prompt the user to enter number of ticket for class C

classCticket = int(input("Please enter number of ticket for class C"))

# the total amount for ticket is calculated

totalAmount = (classAticket * 20) + (classBticket * 15) + (classCticket * 10)

# the total amount is printed

print("The total amount for ticket is $", totalAmount, sep="")

Explanation:

The program is written in Python and well commented.

You might be interested in
Interactive sites where users write about personal topics and comment to a threaded discussion are called 
Sedaia [141]

The answer to your question is A. blogs

3 0
4 years ago
According to the reading on the course web pages, the earliest usage of cooking began around _____ million years ago.
fenix001 [56]

Answer:

According to the reading on the course web pages, the earliest usage of clothes began around ____ million years ago. 3.4 1.5 0.8 0.5 1.7 2. According to the reading on the course web pages, lime mortar was probably discovered from annealing: Charcoal Obsidian Flint Glass 3.

Explanation:

6 0
3 years ago
In a presentation, bullets in a text box will do which of the following?
vesna_86 [32]
It will help you present data with concise statements.
8 0
4 years ago
Write a program in main.c that reads the file lorum.txt and counts the number of characters on each line. Your program should cr
Aneli [31]

Answer:

A C programming language was used to write a file lorum.txt and counts the number of characters on each line.

Explanation:

Raw_Code :

#include<stdio.h>

int main(){

  FILE *read,*write;       //creating file pointers

  int line=1,count=0;

  char ch;

  read = fopen("lorum.txt","r");   //opening files to read and write

  write = fopen("count.txt","w");

  while((ch = getc(read))!=EOF){       //reading lines until end of the file

      if(ch == '\n'){                   //if new line character encountred

          fprintf(write,"%d: %d\n",line,count);       //Then printing count of that line to file  

          line++;                       //incrementing the count of lines

          count = 0;                   //making characters count to 0

      }

      else{

          count++;           //if it is not new line character then increasing character count

      }

  }

  fprintf(write,"%d: %d",line,count);   //writing last lines count to count.txt

  fclose(read);

  fclose(write);

  return 0;

}

4 0
3 years ago
When reading words using a Scanner object's next method, _________. a. any characters at the beginning of the input that are con
zavuch27 [327]

Answer:

The answer is "Option d"

Explanation:

The scanner method is the full token of the process, that finds and returns. It is token, which is followed by both the inputs meeting and the guideline template. This method can block, even though the former instance of hasNext() is true while waiting for input, and wrong choices can be described as follows:

  • In option a, It is incorrect because the character at the beginning can't be considered.
  • In option b, It is wrong because the characters are known as the word in which blank space not a part of the word.
  • In option c, It is wrong because in this input before the call is not the method.
3 0
3 years ago
Other questions:
  • You create hidden form fields with the ____ element.
    9·1 answer
  • The icacls.exe command adds __________, which are visible by clicking the Advanced button in the folder Properties dialog box
    15·1 answer
  • To create a document, you start by selecting the _____ button or option.
    7·1 answer
  • Write the definition of a function named rotate4ints that is passed four int variables. The function returns nothing but rotates
    9·1 answer
  • Hosts A and B are 20 000 km away from each other. The propagation speed of the link between them is 25000 mps. The data is place
    9·1 answer
  • The following code in a different program is not working properly.The message should display the value of the intCounter variabl
    11·1 answer
  • Join my disc server "the angels"<br><br> https://dis cord.gg/PYnWArCz<br><br><br> tyyy
    5·1 answer
  • Write an article for publication on why every student should be computer literate​
    13·1 answer
  • Explain how mobile phone production could be more sustainable​
    8·2 answers
  • Plz plz plz help me with me
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!