Lightening Lanes Case Study Problem Statements On Tuesday afternoons, Lightening Lanes Bowling Alley runs a special class to teach children to bowl. Each lane has an instructor who works with a team of four student bowlers and instructs them as they bowl three lines (games). The management of Lightening Lanes has asked you to develop a program that will report each student’s 3-game average score and compare it to the average score they bowled the previous week. In this way, the students can see how much they are improving. The program will utilize looping structures and data validation techniques learned in class. Input: Input should come from the keyboard, using suitable prompts. First the team names hould be entered. Then, for each of the four students on the team, the program should input their name, their previous week’s average score, and their score from each of today’s games. The score for each game must be between 0 and 300.Output: Output should be written to a file. It should be in the form of a report that lists the team name, each student’s name, their 3-game average from last week, and their 3-game average from today. Program Design General Pseudocode: The following general pseudocode lists the steps the program must carry out.Open the output file Input the team name Print report heading which includes team name For each of the 4 students Input the student’s name Input and validate their last week’s bowling average Input, validate, and add up each of their game scores from to day Print student name, last week’s average and today’s calculated average End for Close the file Variables Whose Values Will be Input : string teamName // the team name name // a student’s name double oldAvg // a student’s previous week’s averages score // a student’s score for 1 game Variable Whose Value Will be Accumulated int total // a student’s total 3-game score
Your code goes here:
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
namespace gamescoreAveragetoFileconsole
{
class Program
{
//Declaring the required class variables
string teamName;
string studentName;
double oldAverage;
double newAverage;
double totalScore;
static void Main(string[] args)
{
//Declaring the list of program class objects
List<Program> listofObjects = new List<Program>();
for (int i = 0; i < 4; i++)
{
Program pgmObj = new Program();
Console.WriteLine("Team Name");
pgmObj.teamName = Console.ReadLine();
Console.WriteLine("student Name");
pgmObj.studentName = Console.ReadLine();
Console.WriteLine("Old Average");
pgmObj.oldAverage = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("total socre");
pgmObj.totalScore = Convert.ToDouble(Console.ReadLine());
// Calculating the new average
pgmObj.newAverage = pgmObj.totalScore / 3;
//Adding the Program objects to the list
listofObjects.Add(pgmObj);
}
//writting the list of objects one by one to the text
document
using (var writer = new StreamWriter("C:\\doc.txt"))
{
// Loop through 4 variables
for (int i = 0; i < 4; i++)
{
writer.Write(listofObjects[i].teamName + "\r\n" +
listofObjects[i].studentName + "\r\n"+"Last week's avaerage" +
listofObjects[i].oldAverage+"\r\n" +"Today's average" +
listofObjects[i].newAverage + "\r\n" );
writer.Write("\r\n");
}
}
}
}
}

Lightening Lanes Case Study Problem Statements On Tuesday afternoons, Lightening Lanes Bowling Alley runs a special...
Write a program in C++ Lightening Lanes Case Study Problem Statement On Tuesday afternoons, Lightening Lanes Bowling Alley runs a special class to teach children to bowl. Each lane has an instructor who works with a team of four student bowlers and instructs them as they bowl three lines (games). The management of Lightening Lanes has asked you to develop a program that will report each student’s 3-game average score and compare it to the average score they bowled the...
Write a C program to compute average grades for a course. The course records are in a single file and are organized according to the following format: Each line contains a student’s first name, then one space, then the student’s last name, then one space, then some number of quiz scores that, if they exist, are separated by one space. Each student will have zero to ten scores, and each score is an integer not greater than 100. Your program...
Write a complete C++ program that reads students names and their test scores from an input text file. The program should output each student’s name followed by the test scores and the relevant grade in an output text file. It should also find and display on screen the highest/lowest test score and the name of the students having the highest/lowest test score, average and variance of all test scores. Student data obtained from the input text file should be stored...
Case Study Baseball Team Manager For this case study, you’ll use the programming skills that you learn in Murach’s Python Programming to develop a program that helps a person manage a baseball team. This program stores the data for each player on the team, and it also lets the manager set a starting lineup for each game. After you read chapter 2, you can develop a simple program that calculates the batting average for a player. Then, after you complete...
IN PYTHON PLEASE...... Process bowlers and their 3 bowling scores. Use my data file below: bowlers2.txt ( Showed below) And you can also use a while loop to read your file if you prefer. How to average down an array, which you don’t have to do. In this case that would be the game 1 average for all bowlers for example. Find the low average and high average. Start with read the data into arrays/lists and printed out the arrays/lists...
C++ Redo PROG8, a previous program using functions and/or arrays. Complete as many levels as you can. Level 1: (20 points) Write FUNCTIONS for each of the following: a) Validate #students, #scores. b) Compute letter grade based on average. c) Display student letter grade. d) Display course average. Level 2: (15 points) Use ARRAYS for each of the following. e) Read a student's scores into array. f) Calculate the student's average based on scores in array. g) Display the student's...
In C++
Write a menu driven C++ program to read a file containing
information for a list of Students, process the data, then present
a menu to the user, and at the end print a final report shown
below. You may(should) use the structures you developed for the
previous assignment to make it easier to complete this assignment,
but it is not required.
Required Menu Operations are:
Read Students’ data from a file to update the list (refer to
sample...
Chapter 8
Python Case study Baseball Team Manager
For this case study,
you’ll use the programming skills that you learn in Murach’s
Python Programming to develop a program that helps a
person manage a baseball team. This program stores the data for
each player on the team, and it also lets the manager set a
starting lineup for each game. After you read chapter 2, you can
develop a simple program that calculates the batting average for a
player. Then,...
In Java(using BlueJ) Purpose Purpose is to practice using file input and output, and array list of objects. Also, this lab specification tells you only what to do, you now have more responsibility to design how to do it. Problem description You are given a text file called 'Students.txt' that contains information on many students. Your program reads the file, creating many Student objects, all of which will be stored into an array list of Student objects, in the Students...
In Java(using BlueJ) Purpose Purpose is to practice using file input and output, and array list of objects. Also, this lab specification tells you only what to do, you now have more responsibility to design how to do it. Problem description You are given a text file called 'Students.txt' that contains information on many students. Your program reads the file, creating many Student objects, all of which will be stored into an array list of Student objects, in the Students...