1. Read in the bowler info below from a file. Calculate the average for the 3 ga
ID: 3553746 • Letter: 1
Question
1. Read in the bowler info below from a file. Calculate the average for the 3 games. If the average is 100 or below, print out bad bowler, if the average is 101-200, print out good bowler, else print out great bowler. Make sure to label everything.
Use a if statement with no else, which means 3 if statements.
snoopy, 200, 230, 240
charlie brown, 76,24, 13
linus, 144, 122, 176
2. Same thing as in number 1 above but this time use a if/else structure.
3. Input the data below from a file. A name and gender. Make sure the gender is character instead of string.
john smith, M
jane doe, f
Sam jones, z
Use a switch statement to print out the name and gender. Male should be printed instead of a M, and female instead of f.
Your default should catch and print out the z gender. You should also handle upper and lower case.
Explanation / Answer
Hi, I can do a high quality guaranteed A+ solution for you. Trust me once and I will help you forever. Just follow the instruction here: http://programmingtutor3.tk
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.