logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Joan DomettEngineering
(4/5)

912 Answers

Hire Me
expert
Earle BirdselllData mining
(5/5)

655 Answers

Hire Me
expert
Namita JainFinance
(5/5)

787 Answers

Hire Me
expert
Shalu KashyapComputer science
(5/5)

791 Answers

Hire Me
Python Programming
(5/5)

string of characters that corresponds to the succession of alien particles separated by commas.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Nick and Porty : The Concentrated Dark Aquapanela

This time, Perry has sneaked into the nabe, which embarrasses Porty . As Perry is bored and does not understand much of what is happening, he decides to help Nick with a very simple task: create high-speed fuel for the ship.

This fuel is called "The Concentrated Dark Aguapanela", due to the large amount of energy it provides to the ship. Nick is testing different formulas, and Perry needs to help him organize them consecutively so that it is exactly what is needed. Thus, Nick and Porty begin to list the particles they need to generate "The Concentrated Dark Aqua Panela", and Perry's task is to write these values, separated by hyphens , and determine consecutively what and how many particles of each type are needed. The particles are determined by alien symbols associated with unknown elements on earth: #, $,%,!,?,;, *, +, ¬.

An example of this would be the following, after Nick and Porty start naming element particles and Perry first writes: # - # - # -! -! -? - + - ¬-¬ -! - # . Thus, Perry determines that the following is the required particle order: # (3 units) ,! (2 units) ,? (1 unit), + (1 unit), ¬ (2 units) ,! (1 unit), and # (1 unit). After understanding that answer, to facilitate reading, Perry decides to use the following format (first line the name of the element, and the second line the number of particles of said element according to the order):

#! ? + ¬! #

3 2 1 1 2 1 1

However, Perry is doing all of this manually. They stop at their "Python Space Stop" restaurant for a bite to eat, and you notice the slowness with which Perry does this task; To avoid Nick's teasing and Porty's grief , you decide to help Perry with a program that makes the task easier after writing the first sequence of alien particles . Develop a python program that receives as input the list of the hyphenated particles that Perry builds, and generates the output in nice format of the particle order (a particle may appear more than once in the output, but not consecutively ) along with another line that corresponds to the number of consecutive particles of the alien element .

Entry

A string of characters that corresponds to the succession of alien particles separated by commas.

Departure

Two character strings: the first, with the organized sequence of alien elements to be used; the second, with the number of particles of each element to be used according to the order established by Nick and Party .

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme