SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 4 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 09 Jan 2018 My Price 10.00

Modify the attached program to do the following:

The assignment is listed below. I know how to do number 1 (I'm assuming I change the plus (+) to an asterisk (*) and I also know how to do number 4 but 2 and 3 have me completely stumped and my instructor is the worst for responding and the text is not helpful at all. I've tried googling to figure out how to do it but haven't had the first bit of luck. I've attached the unedited file. Please help!!!

Your help is greatly appreciated!

Modify the attached program to do the following:

1/Instead of adding two numbers, multiply two numbers

2/change the variable names, method names, etc. to appropriate names.

3/instead of embedding the two numbers to multiple in the program(as the addition program does), modify the code to allow users to input two variables to multiply. (Review earlier coding examples).

4/rename the class and file name to an appropriate name. Remember, both the filename and the class must be the same. Be sure to use your three initials at the end of both. Example:  myProgramDPS.

/**
   This program demonstrates a method that
   accepts two arguments.
   NOTE: this is another way to show documentation.
          By creating documentation using this method,
          the comments can be read and processed by a program
          named javadoc, which produces attractive HTML documentation         
*/

public class TwoArgsDPS
{
   public static void main(String[] args)
   {
      double a = 4.5;
      double b = 6.9;
     
      showSum(a, b);//this statement passes the two variables to the showSum method
   }
  
   /**
      The showSum method displays the sum of
      two numbers.
   */
  
   public static void showSum(double num1, double num2) //at this point, variable a will be known as num1, variable b will be known as num 2
   {
      double sum;    // To hold the sum
     
      sum = num1 + num2;
      System.out.println("The sum is " + sum);
   }
}

Answers

(5)
Status NEW Posted 09 Jan 2018 12:01 PM My Price 10.00

-----------  ----------- 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

Not Rated(0)