C# Visual studio programming

User Generated

ZeYnmlFghqrag

Programming

Description

Overview

You’ll create a program that will allow the user to print the scores from NBA games in 2008 and 2009. The application will consist of two DateTimePickers and a drop down with all the NBA teams listed so that the user can select which games they would like printed, and three print buttons: Page Setup, Print, and Print Preview.


on this link has the files your need as well as last year's assignment, the two assignment should similar

Unformatted Attachment Preview

CPSC 275 Fall 2018 Assignment 8: Basketball Games Due: October 31 Overview You’ll create a program that will allow the user to print the scores from NBA games in 2008 and 2009. The application will consist of two DateTimePickers and a drop down with all the NBA teams listed so that the user can select which games they would like printed, and three print buttons: Page Setup, Print, and Print Preview. Application Design You will use the database Basketball Scores.mdb (available from the S drive and blackboard) to complete this project. It contains scores from over 1300 basketball games from 2008 and 2009. For each game, the date of the game, home team and away team are listed, as well as the home team’s score and away team’s score. Your form should have two DateTimePickers: one for the start date and one for the end date. The start date should default to June 1, 2008 and the end date should default to Oct. 31, 2009. The dropdown should have “All Teams” as its first option, and then each NBA team listed after that. You can enter this information yourself, you do not need to load it from the database. When the user clicks the print button, the program should print all games that are between the start date and the end date for which the selected team is playing (either as the home team or the away team). If the user has selected “All Teams” from the dropdown menu, then all games between the start date and end date should be printed. The Page Setup and Print Preview buttons should behave as they would be expected to. Report Format Each game printed out should print all the available information. For example (note score should be condensed into one column, showing the home team’s score first): October 29, 2009 Portland Denver 94-97 This information should be lined up into columns in the printout. The printout should also have a header that appears on the first page only, with “NBA GAMES” in larger letters at the top, and the search dates just below it: NBA GAMES June 1, 2008 – October 31, 2009 On each page, there should also be a header for the columns (below the header on the first page, at the top of all other pages). Date Home Away Score If the user makes the margin unreasonably wide so that the entire set of game information does not fit on a line, you do not need to wrap that information on the next line—you can simply display the line on the page, as long as the clip rectangle is set up so that text that spills into the margins is not seen. You may also assume that each page is set up so that the headers and at least one line of results will fit onto one page. Code Readability As with all assignments this semester, your code should be easily readable. The code should have a set of comments at the top, noting your name, the assignment number, and a brief description of the program. All variables should be named appropriately: given a brief, descriptive name. The only exceptions should be loop variables which may be named i, j, etc. Lastly, each independent piece of code should have a brief comment describing it. This means that every method, loop, and if statement should have at least one comment, describing what it does. Complex sections of code may need additional comments. Submitting the Assignment Name your application A8_LastName (A8_Hodges for example). Submit your solution to Canvas. Submit a printout of your code as well as the printouts listed below. You should also submit the printout from running the program with these choices: - Chicago games between April 1 and April 30, 2009
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hello, check the solution . Just hoping that your name is Alhaweal

C:\Users\NGAHU-PC\documents\visual studio 2013\Projects\A8_Alhaweal\A8_Alhaweal\Form1.cs

1

//CPSC 275
//Fall 2018
//Assignment 8: Basketball Games
using
using
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Threading.Tasks;
System.Windows.Forms;
System.Data.OleDb;

namespace A8_Alhaweal
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//variables
static OleDbConnection con;
static OleDbCommand cmd;
static OleDbDataReader reader;
private void btnpagesetup_Click(object sender, EventArgs e)
{
/*The following page set up button enables the user to set the printout as expected*/
pageSetupDialog1.AllowMargins = true;
pageSetupDialog1.MinMargins.Left = 100;
pageSetupDialog1.MinMargins.Right ...


Anonymous
Really great stuff, couldn't ask for more.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags