Question: Using a DS4 controller as input. Write a game in c programming language with the output: Round with wrong button pressed: This is a Bop-It

Using a DS4 controller as input.

Write a game in c programming language with the output:

Round with wrong button pressed:

This is a Bop-It Game!

Please press the Circle Button to begin!

Press the triangle button!

You have 2500 milliseconds to respond!

Press the triangle button!

You have 2400 milliseconds to respond!

Press the square button!

You have 2300 milliseconds to respond!

Press the cross button!

You have 2200 milliseconds to respond!

Press the circle button!

You have 2100 milliseconds to respond!

Press the triangle button!

You have 2000 milliseconds to respond!

Press the square button!

You have 1900 milliseconds to respond!

Press the circle button!

You have 1800 milliseconds to respond!

Wrong button!

You lose!

You made it through 7 rounds!

Round with a timeout:

This is a Bop-It Game!

Please press the Circle Button to begin!

Press the cross button!

You have 2500 milliseconds to respond!

Press the triangle button!

You have 2400 milliseconds to respond!

Press the cross button!

You have 2300 milliseconds to respond!

Press the circle button!

You have 2200 milliseconds to respond!

Press the cross button!

You have 2100 milliseconds to respond!

Press the square button!

You have 2000 milliseconds to respond!

Press the square button!

You have 1900 milliseconds to respond!

Press the square button!

You have 1800 milliseconds to respond!

Press the circle button!

You have 1700 milliseconds to respond!

Press the triangle button!

You have 1600 milliseconds to respond!

Press the cross button!

You have 1500 milliseconds to respond!

Press the cross button!

You have 1400 milliseconds to respond!

Press the square button!

You have 1300 milliseconds to respond!

Press the cross button!

You have 1200 milliseconds to respond!

Press the square button!

You have 1100 milliseconds to respond!

Press the cross button!

You have 1000 milliseconds to respond!

Thanks for playing!

You made it through 15 rounds!

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!