Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

You are the official score keeper for the "C" Bowling Association (CBA). You should prepare a program that will:
? a. Input date of game (three integers yyyy/mm/dd).
? b. Input bowler's first and last name initial (two separate characters) and three scores (three integer of 0-300 ranges).
? c. find out average for that bowler.? d. Assign stars to that bowler based on the following scale:
o Avg >= 200 4 stars
o Avg 170 to 199 3 stars
o Avg 125 to 169 2 stars
o Avg 100 to 124 1 star
o Avg < 100 no star
? e. Output the bowlers name, avg, and number of stars earned.
? f. Your program must be able to process any number of bowlers.
? g. Discover which bowler had the highest average and print out his/her name, average and 
number of stars. (Assume there is only one bowler who had the highest average)? h. find out and output the average of all the bowlers and the date of game.
Implement all functionalities in your main() function and name this file as b.1.c. 
ex:
This is the "C" bowling association
Please input the game date(yyyy/mm/dd):2012/10/14
Please input the bowler's first and last initial:bo
Please input the bowler's score:101 102 103
Bowler b. o. has average 102 and 1 star(s)
Please input the bowler's first and last initial:mr
Please input the bowler's score:202 204 203
Bowler m. r. has average 203 and 4 star(s)
Please input the bowler's first and last initial:^D
The best bowler on 2012/10/14 is:
Bowler m. r. has average 203 and 4 star(s)
The average of all bowlers in this game is 152
Modify b.1.c to make a file with name b.2.c. In b.2.c, you need to make following changes:
? i. Instead of output the number of stars in e. and g., your program must print the actual appropriate sequence of stars (like "****"), not just a number.
? j. Step b., c. and e. in previous requirements must be written as separate functions. (e.x. int average(int, int, int); int assignStar(int); void output(char, char, int, int);)
? k. Your program should be able to process multiple games in different dates. And it should discover the bowler who had the highest average over these games and print out his/her name, average and assigned sequence of stars. Your program should also print the date when the best bowler had the highest score.
ex:This is the "C" bowling association
Please input the game date (yyyy/mm/dd):2012/10/13
Please input the bowler's first and last initial:mr
Please input the bowler's score:245 234 248
Bowler m. r. has average 242 and ****
Please input the bowler's first and last initial:bo
Please input the bowler's score:300 299 289
Bowler b. o. has average 296 and ****
Please input the bowler's first and last initial:^D
The best bowler on 2012/10/13 is:
Bowler b. o. has average 296 and ****
The average of all bowlers in this game is 269
Please input the game date(yyyy/mm/dd):2012/10/14
Please input the bowler's first and last initial:bo
Please input the bowler's score:101 102 103
Bowler b. o. has average 102 and *
Please input the bowler's first and last initial:mr
Please input the bowler's score:202 204 203
Bowler m. r. has average 203 and ****
Please input the bowler's first and last initial:^D
The best bowler on 2012/10/14 is:
Bowler m. r. has average 203 and ****
The average of all bowlers in this game is 152
Please input the game date(yyyy/mm/dd):^D
The highest score was on 2012/10/13
The best bowler in all game is:
Bowler b. o. has average 296 and ****
Hint and requirement:
? Use scanf("%d/%d/%d", &y, &m, &d); to read yyyy/mm/dd. Use scanf("%*c%c%c", &fi, &li); to read first and last initials after reading date with scanf(); If there is no other scanf() used before the one you use to read first/last initials, you can just use the normal 
scanf("%c%c", &fi, &li);
? No array is allowed to use in this program.
? Assume input is reasonable and without error.For b.1.c:
- Input / output date incorrectly or missing: - 3 pts
- Input / output first/last initials and scores/average incorrectly: - 3 pts/each
- Assigned number of stars incorrectly: - 3 pts
- Couldn't process multiple input: -5 pts
- Best bowler information incorrect: - 5 pts
- Average over all bowlers incorrect: - 4 pts
- Use array: - 10 pts
For b.2.c:
- Sequence of stars incorrect: -3 pts
- Missing functions or didn't implement b, c, d as separate functions: - 5 pts/each
- Couldn't process multiple games: - 5 pts
- Information of best bowler in all games incorrect: - 3 pts
- Date of highest score incorrect: - 3 pts
- If any of previous requirements in b.1.c is violated, points will be taken off accordingly 

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M997088

Have any Question?


Related Questions in Programming Language

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As