Knowee
Questions
Features
Study Tools

The "Pine Tree" Event Management Company helps you plan and execute it better and faster, be it a last-minute get-together, a birthday party, or a corporate event. Nikhil, the founder of the company wanted the Pineaxe Event Management System to get and display the event details from his Customers for every new order of the Company.Write a program that will get the input of the event details like the name of the event, type of the event, number of people expected, a string value (Y/N) telling whether the event is going to be a paid entry, and the projected expenses (in lakhs) for the event. The program should then display the input values as a formatted output.Input format :The first input is a string corresponding to the event's name. Assume the maximum length of the string as 50.The second input is a string that corresponds to the type of event. Assume the maximum length of the string as 50.The third input is an integer corresponding to the number of people expected for the event.The fourth input is a character that corresponds to Y/N telling whether the event is going to be a paid entry or not.The fifth input is a double value that corresponds to the projected expenses (in lakhs) for the event.Output format :The output should display the event details as given in the sample output.All double values need to be displayed correctly to 1 decimal place.Refer to the sample output for formatting specifications.Sample test cases :Input 1 :Food Fest 2017Public5000Y5.7Output 1 :Event Name : Food Fest 2017Event Type : PublicExpected Count : 5000Paid Entry : YProjected Expense : 5.7LInput 2 :Food Fest 2010Public500N5.7Output 2 :Event Name : Food Fest 2010Event Type : PublicExpected Count : 500Paid Entry : NProjected Expense : 5.7L

Question

The "Pine Tree" Event Management Company helps you plan and execute it better and faster, be it a last-minute get-together, a birthday party, or a corporate event. Nikhil, the founder of the company wanted the Pineaxe Event Management System to get and display the event details from his Customers for every new order of the Company.Write a program that will get the input of the event details like the name of the event, type of the event, number of people expected, a string value (Y/N) telling whether the event is going to be a paid entry, and the projected expenses (in lakhs) for the event. The program should then display the input values as a formatted output.Input format :The first input is a string corresponding to the event's name. Assume the maximum length of the string as 50.The second input is a string that corresponds to the type of event. Assume the maximum length of the string as 50.The third input is an integer corresponding to the number of people expected for the event.The fourth input is a character that corresponds to Y/N telling whether the event is going to be a paid entry or not.The fifth input is a double value that corresponds to the projected expenses (in lakhs) for the event.Output format :The output should display the event details as given in the sample output.All double values need to be displayed correctly to 1 decimal place.Refer to the sample output for formatting specifications.Sample test cases :Input 1 :Food Fest 2017Public5000Y5.7Output 1 :Event Name : Food Fest 2017Event Type : PublicExpected Count : 5000Paid Entry : YProjected Expense : 5.7LInput 2 :Food Fest 2010Public500N5.7Output 2 :Event Name : Food Fest 2010Event Type : PublicExpected Count : 500Paid Entry : NProjected Expense : 5.7L

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

Here is a Python program that will do as described:

# Get the event details from the user
event_name = input()
event_type = input()
expected_count = int(input())
paid_entry = input()
projected_expense = float(input())

# Display the event details
print("Event Name : " + event_name)
print("Event Type : " + event_type)
print("Expected Count : " + str(expected_count))
print("Paid Entry : " + paid_entry)
print("Projected Expense : " + str(projected_expense) + "L")

This program first gets the event details from the user through the input() function. It then prints out these details in the specified format. The str() function is used to convert the integer and float values to strings so that they can be concatenated with the other strings.

This problem has been solved

Solution 2

Here is a Python program that accomplishes the task:

# Get the event details from the user
event_name = input()
event_type = input()
expected_count = int(input())
paid_entry = input()
projected_expense = float(input())

# Display the event details
print("Event Name : " + event_name)
print("Event Type : " + event_type)
print("Expected Count : " + str(expected_count))
print("Paid Entry : " + paid_entry)
print("Projected Expense : " + str(format(projected_expense, '.1f')) + "L")

This program first gets the event details from the user. It then prints these details in the specified format. The projected expense is formatted to 1 decimal place using the format function.

This problem has been solved

Similar Questions

Madhan is the event organizer for the Annual Gala at Greenfield Hall and he needs a tool to log guest invitations. He requires a program that takes a participant's name and the number of guests they will bring. The program should then display a personalized message.Can you create the program for Madhan?Input format :The first line of input consists of a string, representing the participant’s name.The second line consists of an integer, representing the number of guests.Output format :The output prints the personalized message.Refer to the sample output for the exact text and format.Code constraints :The participant’s name is a non-empty string.Sample test cases :Input 1 :Dhanush12Output 1 :Dhanush has invited 12 guests to the Annual Gala!Input 2 :Sarah David20Output 2 :Sarah David has invited 20 g

In a bid to raise their levels of efficiency, the management of Darkwood Timber, Inc. has implemented an accounting system that provides them with information about their business and aids in internal controls. The system that they’ve implemented is known as _____ accounting.Group of answer choicesmanagerialfinancialsubjectivetransient PreviousNext

Consider a series of events.(a) How does a tree diagram help you list all the possible outcomes of a series of events?All possible outcomes are shown as distinct paths from the beginning of the diagram to the end of each last branch.All possible outcomes are shown as distinct paths along every individual branch.    All possible outcomes are shown at the beginning of each branch.All possible outcomes are shown along the top branch.(b) How can you use a tree diagram to determine the total number of outcomes of a series of events?Counting the number of beginning branches gives the total number of outcomes.Counting the number of outcomes on the first main branch and then multiplying by 2.    It is not possible to count the total number of outcomes using a tree diagram.Counting the number of final branches gives the total number of outcomes.

Consider a series of events.(a) How does a tree diagram help you list all the possible outcomes of a series of events?All possible outcomes are shown as distinct paths along every individual branch.All possible outcomes are shown along the top branch.    All possible outcomes are shown as distinct paths from the beginning of the diagram to the end of each last branch.All possible outcomes are shown at the beginning of each branch.(b) How can you use a tree diagram to determine the total number of outcomes of a series of events?Counting the number of beginning branches gives the total number of outcomes.Counting the number of final branches gives the total number of outcomes.    It is not possible to count the total number of outcomes using a tree diagram.Counting the number of outcomes on the first main branch and then multiplying by 2.

The event organizing company "Buzzcraft" focuses on event management in a way that creates a win-win situation for all involved stakeholders. Buzzcraft doesn't look at building one-time associations with clients but instead aims to create long-lasting collaborations that will span years to come. This goal of the company has helped it evolve and expand greatly by organizing many events to date.The number of events that the company organizes every month is recorded and is deemed to have followed a specific series like 30, 35, 38, 41, 54, and 53 ...Write a program that takes an integer N as the input and will output the series until the Nth term.Input format :The input consists of an integer N.Output format :The output prints the series until the Nth term, separated by spaces.Sample test cases :Input 1 :25Output 1 :30 35 38 41 54 53 78 71

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.