Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is C programming. please write this code in C programming it should not be count it should be printf Please look at the requirments

This is C programming. please write this code in C programming

it should not be "count" it should be "printf" Please look at the requirments below:

image text in transcribed

image text in transcribed

% ./a.out Please rise for our national anthem. a name number average (add a player) h (help) q (quit) p (print all players) p number (print a single player) Command: p Player Num Average ======== === ======= Command: a Jack 12 42 Command: a Theresa 40 300 Command: a Babe 3 342 Command: p Player Num Average ======== === ======= Jack 12 .042 Theresa 40 .300 Babe 3 .342 Command: p 40 Player Num Average ======== === ======= Theresa 40 .300 Command: p 99 Player Num Average ======== === ======= Command: a Lou 3 125 The team already has a player #3. Command: p Player Num Average ======== === ======= Jack 12 .042 Theresa 40 .300 Babe 3 .342 Command: z Bad command 'z'. a name number average (add a player) h (help) q (quit) p (print all players) p number (print a single player) Command: h a name number average (add a player) h (help) q (quit) p (print all players) p number (print a single player) Command: q 

image text in transcribed

CS157 HW2: Baseball! For this assignment, you will write a program called bb.c, which will help you manage your baseball team You don't have to keep track of much: each player has a name, a player number, and a batting average. Data Structures You must store the team as an array of structures. The array must not be a global variable

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

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions