Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i just need question number 2 answered 1. Semester Grades In Example 1 of this section, modify the event procedure btnDisplay Click so that only

image text in transcribed

i just need question number 2 answered

1. Semester Grades In Example 1 of this section, modify the event procedure btnDisplay Click so that only the students who receive a grade of A are displayed The file UnitedStates.txt provides data on the 50 states. (This file is used in Exercises 2 through 5.) Each record contains five pieces of information about a single state: name, abbreviation, date it entered the union, land area (in square miles), and popu- lation in the year 2015. The records are ordered by the date of entry into the union. The first three lines of the file are Delaware,DE,12/7/1787,1954,941875 Pennsylvania, PA,12/12/1787,44817,12856989 New Jersey, NJ,12/18/1787,7417,8969545 2. U.S. States Create a class State with five properties to hold the information about a single state and a method that calculates the density (people per square mile) of the state. 3. U.S. States Write a program that requests a state's name in an input dialog box and displays the state's name, abbreviation, density, and date of entrance into the union. See Fig. 11.11. The program should use an array of State objects. us. States- US States Display States and Densities Ordered by Density in Descending Order Look Up State Information Name: Califomia Abbrev CA Density 250.1 Density Name New Jersey 1209.3 Rhode Island 998.4 Massachusetts864.1 Connecticut 7474 Entered Monday, September 9,1850 FIGURE 11.11 Possible outcome of Exercise 3 FIGURE 11.12 Outcome of Exercise 4

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

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions