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
dimaraw [331]
4 years ago
6

Now write a program named GreenvilleRevenue that prompts a user for the number of contestants entered in last year’s competition

and in this year’s competition. Display all the input data. Compute and display the revenue expected for this year’s competition if each contestant pays a $25 entrance fee. Also display a statement that indicates whether this year’s competition has more contestants than last year’s.
Computers and Technology
1 answer:
ss7ja [257]4 years ago
6 0

Answer:

The c# program is given below.

using System;

class GreenvilleRevenue  

{

   static void Main() {

       // variable declared and initialized simultaneously

       int fees = 25;

       int last, present, rev;

       Console.WriteLine( "Enter the number of contestants participating in last year’s competition " );

       last = Convert.ToInt32(Console.ReadLine());

       Console.WriteLine( "Enter the number of contestants participating in this year’s competition " );

       present = Convert.ToInt32(Console.ReadLine());

       Console.WriteLine( "Number of Participants in last year's competition  \t\t" + last);

       Console.WriteLine( "Number of Participants in present year's competition   \t" + present);

       rev = present*fees;

       Console.WriteLine( "Revenue expected in this year’s competition is \t\t\t$" + rev );

       if(last < present)

           Console.WriteLine( "Participants are more this year" );

       else if(last > present)

           Console.WriteLine( "Participants are less this year" );

       else if(last == present)

           Console.WriteLine( "Participants are same both years" );

   }

}  

OUTPUT

Enter the number of contestants participating in last year’s competition  

111

Enter the number of contestants participating in this year’s competition  

123

Number of Participants in last year's competition    111

Number of Participants in present year's competition    123

Revenue expected in this year’s competition is   $3075

Participants are more this year

Explanation:

This program takes input from the user. The input is not validated as this is not mentioned in the question.

1. An integer variable is declared and initialized by the fees of this year’s competition.

2. Integer variables are declared to store participants for last year, present year and revenue earned in the present year.

3. User enters the number of participants in last year’s competition.

4. User enters the number of participants in this year’s competition.

5. All the input from the user is displayed.

6. The revenue earned in this year’s competition is computed and displayed.

7. The message is also displayed whether number of participants this year is greater or not than the last year.

8. Also, if participants are same in both years, the message is displayed accordingly.

You might be interested in
Heeeeeeeelp :)<br> thx<br> jfdyiusjmkdsuiho;dmcvrvho;j
anastassius [24]

Answer:

I think option C is correct

7 0
3 years ago
Read 2 more answers
You attempt to telnet to system 192.168.1.240. You receive the following message: "Connecting To 192.168.1.240...Could not open
Serjik [45]

Answer:

firewall

Explanation:

The firewall could be used to protect the network from unauthorised access.Usually an ip could be whitelisted so it could transfer packets between allowing it connect through.

3 0
3 years ago
What are some causes of the number of bytes on the wire exceeding the number of bytes being captured?
Aneli [31]
<span>Some causes of the number of bytes on the wire exceeding the number of bytes being captured is that </span>not everything is being captured or that partial packets may be captured which could lead to incorrect analysis. If there are regularly more bytes on the wire than captured, then, it is possible that the computer on which Wireshark is running is not able to keep up with the interface.
7 0
3 years ago
Read 2 more answers
What is the mid-square method?
Rom4ik [11]

Explanation:

Mid-Square Method:-In this method some it takes some digits from the square of a number.This number is a random number.This number can be used as a key for hashing.

This technique is mostly used in hashing so decrease the collision in hash maps.

This method has  a limitation that when we square a large number it may go out of range of integer so we have handle those cases.

8 0
3 years ago
We are committed to creating and cultivating a graduate and postdoctoral community that values and respects individuals, regardl
kykrilka [37]

Answer:

I will contribute to enhance the academic, cultural, and intellectual environment for graduate students and postdoctoral at the University of Connecticut in the following ways:

  • Participating in events.
  • Establishing importance for cultural environment.
  • Informing people by conducting social seminars.
  • Picturing the benefits of academic environment.

Explanation:

Following is the explanation for each of the steps stated above.

      1. Participating in events:

                       All students must be guided to participate and perform in the events conducted. These guidelines should be made mandatory for each pupil to follow so that they may be aware of benefits of the events by being social.

      2. Establishing importance for cultural environment:

                   Cultural festivals should be arranged by the universities so that the importance of such events could be realized by the students. Rules and regulation must be followed by each student so that a cultural environment may be established.

      3. Informing people by conducting social seminars:

                  Introductory seminars play an important role in changing the minds and thoughts of the students and social members. So in order to make society a best place it is necessary to make people aware of morals of society. Therefore conducting seminars is a key to good moral awareness.

       4. Picturing the benefits of academic environment:

                      Each student must know about the benefits of keeping interests in academic. In order to built an academic environment among the universities it is better to picture the future aspects and benefits o such interests so that the pupils keep believe on the academic interests by heart.

<h3>I hope it will help you!</h3>

                       

3 0
4 years ago
Other questions:
  • When a structure satisfies all the properties of a relation except for the first item—in other words, some entries contain repea
    7·1 answer
  • What is the resistance of a 1,000-foot length of #6 AWG wire at a temperature of 25 degrees C? A. 0.1593 ohm B. 0.4028 ohm C. 0.
    7·1 answer
  • How do you jumpstart a car in the middle of nowhere??? Explain using 2 paragraphs.
    14·2 answers
  • Suppose your boss has asked you to write a letter to a client about a problem with their order. What format of writing would you
    9·1 answer
  • What are reserved words in C programming?
    9·1 answer
  • URGENT!!! Steve wants to change shooting and exposure settings while on his photo shoot. Which camera part will allow him to do
    12·2 answers
  • Plz help
    8·1 answer
  • What is the difference of using Selection Tool and Direct Selection Tool?
    6·1 answer
  • What is modern? explain​
    11·1 answer
  • Question 2:
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!