Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C BASIC LANGUAGE. Also, if you can add comments in order to help me learn. For this project we want you to create a program

C BASIC LANGUAGE. Also, if you can add comments in order to help me learn.

For this project we want you to create a program that will assist in the playing of bingo. The program should create valid bingo calls and check if user supplied bingo calls are valid. If you are unfamiliar with bingo, here are what bingo cards look like. There are 5 columns with values in each column. The first column is B and can have values between 1 and 15 (inclusive) in the column. The second column is I and can have values between 16 and 30 (inclusive) in the column. The remaining columns follow the same pattern of 15 possible values.

Your program should:

Prompt the user whether they want to create or check bingo calls

If create bingo calls

Prompt the user for the number of values to be called

Create a valid bingo call

Display the call to the user

If check bingo calls

Prompt the user for the bingo call

Read in the bingo call to be checked

Check if call is valid and display an appropriate message

Sample Output: (The bold values are user input and are for display purposes only)

Welcome to the Bingo Caller program.

This program generates and checks bingo calls that can be used when playing Bingo.

Would you like to:

(1) generate bingo calls

(2) check bingo calls

(3) exit

1

How many bingo calls you like to have generated? 5

Here are your 5 bingo calls:

G51

N39

B7

O62

I22

Would you like to:

(1) generate bingo calls

(2) check bingo calls

(3) exit

2

Enter the bingo call you would like to have checked, 0 to exit: B17

B17 is NOT a valid bingo call

Enter the bingo call you would like to have checked, 0 to exit: I17

I17 is a valid bingo call

Enter the bingo call you would like to have checked, 0 to exit: 0

Would you like to:

(1) generate bingo calls

(2) check bingo calls

(3) exit

3

Thank You for using the bingo call generator/checker.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions