Reference no: EM13165115
Write a Java test program, all your code should be in the main method, that determines what type of organization is indicated by a web address. Your program should allow the user to enter a web address. It should check the last few characters of the address and print a message indicating the type of organization. For instance, if the web address ends with .com, your program should print the message Business.
Your code should check for the follow address types:
.com
.org
.biz
.net
Feel free to add other address types.
This program should not use a loop. You can write the code with if..else statements.
Hint: check out the endsWith() method of the String class.
Suggested Pseudocode
declare a String vairable for user input
get a web address (URL) from the user
if user input ends with .com
display "Business" message
else
if user input ends with .net
display "Network" message
else
if ... // you need to test for each possible case. The if..else if..else structure will exit once you get a match
The ford pinto case
: Review “The Ford Pinto Case” in Chapter 8 and discuss whether tort or wrong-doing was committed. Explain your rationale.
|
How many grams of water were in the sample
: A 49g piece of ice at 0 degrees C is added to a sample of water at 9 degrees C. All of the ice melts and the temperature of the water decreases to 0 degrees C.
|
Determine the best sales mix and rank the services
: Determine the best sales mix and Rank the services offered in order of their profitability and what additional amount of total contribution margin would be generated if your recommendation is accepted?
|
Hip-hop culture similar cultural phenomenon
: Explain the appeal of Harlem’s nightlife to whites, especially during Prohibition. Discuss whether you consider the cross-over appeal of Hip-Hop culture a similar cultural phenomenon today.
|
Java test program
: Write a Java test program, all your code should be in the main method, that determines what type of organization is indicated by a web address. Your program should allow the user to enter a web address
|
Program that converts the temperature
: Write a program that converts the temperature F in Farenheit to C in Celsius using C = (F-32)*5/9. For ease of programming you can display the result in fractions
|
Add details to the design of a file system and implement it
: add details to the design of a file system and implement it in detail. The file system uses a variant of the scheme used by UNIX in that it allows for a hierarchical file directory and uses pointers to individual blocks of data. The disk used has 100..
|
State the most common error students make during a titration
: The most common error students make during a titration is that they add extra NaOH past the endpoint causing the solution to change a dark pink color.
|
Calculate the loses frequency of that can ionize
: an energy of 353 kJ/mol is required to cause a Mg atom on a metal surface to lose an electron. calculate the loses frequency of that can ionize a Mg atom.
|