Question: 1. Write a BASH shell script (see the Important Notes section) that plays the Fizz Buzz game (https://en.wikipedia.org/wiki/Fizz buzz e). Note 1: Refer to the

 1. Write a BASH shell script (see the Important Notes section)

1. Write a BASH shell script (see the Important Notes section) that plays the Fizz Buzz game (https://en.wikipedia.org/wiki/Fizz buzz e). Note 1: Refer to the Example Output and List of Fizz Buzz Values sections below for assistance. Note 2: Although several BASH scripting examples exist online for the Fizz Buzz game, students need to familiarize themselves with BASH scripting so they can successfully complete future Linux Lab assignments. The script should loop through the integers 1 to 100 (inclusively) o For each integer Display the integer followed by a colon (i.e., 1:) Determine if the integer is evenly divisible by either 3 or 5 If the integer is evenly divisible by both 3 and 5 (i.e., 15, 30, 45, etc.), display Fizz Buzz Aspace must exist between Fizz and Buzz If the integer is evenly divisible by 3 only (i.e., 3,6,9, etc.), display Fizz A space must not exist after Fizz If the integer is evenly divisible by 5 only (i.e., 5, 10, 20, etc.), display Buzz A space must not exist before Buzz Track the individual counts of how many times Fizz, Buzz or Fizz Buzz are displayed o Display the Total Counts 1. Write a BASH shell script (see the Important Notes section) that plays the Fizz Buzz game (https://en.wikipedia.org/wiki/Fizz buzz e). Note 1: Refer to the Example Output and List of Fizz Buzz Values sections below for assistance. Note 2: Although several BASH scripting examples exist online for the Fizz Buzz game, students need to familiarize themselves with BASH scripting so they can successfully complete future Linux Lab assignments. The script should loop through the integers 1 to 100 (inclusively) o For each integer Display the integer followed by a colon (i.e., 1:) Determine if the integer is evenly divisible by either 3 or 5 If the integer is evenly divisible by both 3 and 5 (i.e., 15, 30, 45, etc.), display Fizz Buzz Aspace must exist between Fizz and Buzz If the integer is evenly divisible by 3 only (i.e., 3,6,9, etc.), display Fizz A space must not exist after Fizz If the integer is evenly divisible by 5 only (i.e., 5, 10, 20, etc.), display Buzz A space must not exist before Buzz Track the individual counts of how many times Fizz, Buzz or Fizz Buzz are displayed o Display the Total Counts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!