Question: in python: Problem 1 - Galactic Broadcast You are the communications officer aboard the spaceship Cosmic Voyager. To ensure the messages sent to other ships
in python: Problem Galactic Broadcast
You are the communications officer aboard the spaceship Cosmic Voyager. To ensure the messages sent to other ships are loud and clear, you need to emphasize every word in your broadcasts. The protocol for urgent communications requires adding exclamation marks for emphasis for each space and at the end of the message.
Complete the galacticBroadcast function, which, given a string containing your original message, returns a new string where all letters are capitalized, each space is replaced by two exclamation marks and ends with
Sample Case Sample Case Sample Case
Flag question: Spacer
Problem Organize Study
You've been asked to organize a study! Complete the OrganizeStudy class by filling in the methods. There should be three private data members representing the study name, the number of participants, and whether or not the experiment is ready. The study name will be given as a string and the number of participants will be given as an integer ininit The experiment should start off as not ready. Class data should be private. You will not receive points if your class data is not private. In addition toinit you'll also need to complete the following methods:
addParticipantswhich takes an integer denoting new participants to add to the study and changes the number of participants for the object. This method should also return the new number of participants.
prepareExperimentwhich takes no parameters and sets the experiment status to ready.
conductStudywhich takes in one parameter,groupsize, and returns "The study had multiple groups!" if the experiment was ready and you can make multiple full groups assuming participants can't be in multiple groups at once If you can only make one full group and the experiment was ready, return the study completion message: "The study was successful!" Make sure to decrement the number of participants in the object by the total number of participants used and set the experiment status to not ready by the end of the method for both cases. If the study wasn't successful, return the error message "The study was not completed".
strwhich takes no parameters and returns a string formatted according to the sample runs.
Note thatgroupSizewill always be positive.
Sample Case Sample Case Sample Case
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
