ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

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

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 11 Weeks Ago, 5 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 22 May 2017 My Price 8.00

Write a program in java named PrimeFactorization

Write a program in java named PrimeFactorization that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. Integers are accepted and multiplied until the user enters an integer less than 1. This final number is not part of the product. Then, the program prints the product. If the first entered number is negative or 0, the program must print “Bad input.” and terminate immediately. Next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. If a prime number is not a factor of the product, then it must not appear in the factorization. Sample runs are given below. Note that if the power of a prime is 1, then that 1 must appear in the answer. Note: Your program’s prompt and output messages must conform to the following spelling and spacing

Enter integers: 882 18 26 -45

Product: 412776

Prime factorization: 2ˆ3 3ˆ4 7ˆ2 13ˆ1

Answers

(11)
Status NEW Posted 22 May 2017 05:05 AM My Price 8.00

-----------

Not Rated(0)