The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 3 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
1- What is the purpose of keyword final? Explain what happens when you use it and give an example.
Â
2- Present Value (PV) is a formula used in finance that calculates the present day value of an amount received at a future date.
    PV is calculated from the equation:
    Where c is the cash flow, r is the rate of return and n is the number of periods. Write a program that reads the values of C,r,n and prints the
    Present Value. Here is a sample run. User input is in blue color.
    Please enter C: 3000
    Please enter r: 0.5
    Please enter n: 2
Â
Â
3- Write short Java statements to complete each of the following tasks:
        1- Test whether variable x is less than 5. If it is, print "x is less than 5"
        2- Test if String x is equal to String y. if it is , print "Identical Strings"
        3- Test whether variable x is even (An even number is an integer that is exactly divisible by 2) .if it is , increment x
         4-Create an if statement that is unconditionally true
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly