Create a new class, call it stringdisplaypractice

Assignment Help Chemistry
Reference no: EM13964911

Create a new class, call it StringDisplayPractice.

Your program will display student data in a table format.  You will not need to create variables, just display the data as shown below.  What will you need to use to do this?

Name Year Major

------------------- ------ --------

Anne Smith 1 Computer Science

Tom Harding 2 Criminal Justice

Jake White 1 Information Systems

  String methods

Create a new class, call the class StringPlay.

Remember to include required comment blocks

Ask the user for their street address, town, 2-character state code, and zip code.  Store each entered data in appropriately named String variable.

Do each of the following:

Print the full street address ALL in uppercase.  Town and state will be displayed as entered.  (OPTIONAL: Convert first letter of town to uppercase, convert state code to uppercase)

123 MAIN ST.

Heyworth, IL 61761

Print the length of the street address.  Be sure to give it a label.

Length of street address:  12

Print the first letter in the town name.  Be sure to give it a label.

Reference no: EM13964911

Questions Cloud

Matrix and find the corresponding vectors : Determine the characteristic values of the given matrix and find the corresponding vectors:
What is the capacitance of this cable in nf : A coaxial cable has a charged inner conductor (with charge +4.8 microcoulombs and radius 1.199 mm) and a surrounding oppositely charged conductor (with charge -4.8 microcoulombs and radius 7.405 mm). What is the magnitude of the electric field half..
How many breaths per minute will satisfy person''s oxygen : How many breaths per minute will satisfy the person's oxygen requirements?
What is the low temperature heat transfer rate : The air conditioner in a car uses R-134a, and the compressor power input is 1.5 kW, bringing the R-134a from 201.7 kPa to 1200 Kpa by compression. The cold space is a heat exchanger that cools 30 degrees C atmospheric air from the outside down to..
Create a new class, call it stringdisplaypractice : Create a new class, call it StringDisplayPractice. Your program will display student data in a table format.  You will not need to create variables, just display the data as shown below.  What will you need to use to do this?
Problem regarding the multiply matrix : Multiply matrix a by matrix b matrix a: row 1 = [0 1 2] row 2 = [-1 4 .5] row 3 = [1 3 0]
What is the flux of the magnetic field : What is the flux of the magnetic field through this tile in the vicinity of this tile, the magnetic field is approximately B=300 MN/C in a direction 37 degrees up from the horizontal? And what would be the flux if the magnetic field has a magnitud..
Determine the production order : Next year the company wants to produce a total of 800 desks. Determine the production order for each plant for the forthcoming year if the total cost for each pant is to be the same.
A valuable target for infiltration : Identify an online group that would be a valuable target for infiltration, identify information that would assist in successfully intruding, and create a fake identity that could be used for such an infiltration

Reviews

Write a Review

Chemistry Questions & Answers

  Explain dho and dso hardly change with temperature

Assuming that DHo and DSo hardly change with temperature, determine the temperature in K at which the spontaneity of this reaction changes.

  Define the original molarity of a solution of formic acid

The original molarity of a solution of formic acid with a Ka of 1.7x10^-4. Its pH is 4.52 at equilibrium is _____ mol/L

  Define the concentrations shown are after mixing

Problem- Which of the combinations below will produce some precipitate (even if only a very small amount)? The concentrations shown are after mixing, but before reaction.

  Naturally occurring oxygen is composed of 99757 of 16o

naturally occurring oxygen is composed of 99.757 of 16o atomic mass 15.9949 u 0.038 of 17o atomic mass 16.9991 u and

  Rationalize your prediction using le chatelier''s principle

Question- We considered mixing a strong base with a weak acid, but we did not consider mixing a strong acid with a weak acid. Consider mixing 0.1M HNO3and 0.1M HNO2. Predict the pH of the solution and the percent ionization of the nitrous acid. Ra..

  What was the percentage by mass of ascorbic acid

An ascorbic acid supplement was analyzed by titrating a 0.1000g sample dissolved in water with 0.0200M NaOH. A volume of 15.20 mL of the base was required to completely neutralized the ascorbic acid. What was the percentage by mass of ascorbic aci..

  Explain what are the values of e, l and lz

What are the values of E, L, and Lz for an F8+ atom whose electron has the following wave functions, listed as ((Wavefunction Symbol) n,l,ml)

  State final temperature of the mixture thermal equilibrium

A 32.1 g iron rod, initially at 23.0^C, is submerged into an unknown mass of water at 63.4^C, in an insulated container. The final temperature of the mixture upon reaching thermal equilibrium is 59.4^C.What's the mass of water

  State the reaction goes to completion

23 g of oxygen are reacted with sufficient nitrogen to make 33 g of nitrogen dioxide according the following reaction: 2O2(g) + N2(g) -> 2NO2(g)If the reaction goes to completion, how much nitrogen reacted

  Explain the relative bronsted-lowry acid strengths

From the following chemical reactions determine the relative Bronsted-Lowry acid strengths (strongest to weakest). HCLO4 (aq) + H2O (l) ----> H3O (aq) + ClO4- (aq)

  The reversible chemical reaction has the equilibrium

The reversible chemical reaction has the following equilibrium constant: Kc=[C][D]/[A][B]=7.0 Initially, only A and B are present, each at 2.00 M .

  Explain compound a was treated first with ozone

Compound A was treated first with ozone then with zinc dust, yeilding compounds, B and C. Compound B gave rise to a molecular ion at m/z=72

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd