JAVA PROGRAMMING, WILL GIVE BRAINLIEST, PLS
Here are the instructions:
Debug the program so i...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.10.2020 08:01 ErrorNameTaken505
JAVA PROGRAMMING, WILL GIVE BRAINLIEST, PLS
Here are the instructions:
Debug the program so it prints the factorial of a positive integer entered by the user. This is calculated by multiplying all the numbers from 1 up to that number together. For example, 5 factorial is 5*4*3*2*1 = 120.
Here is the code:
import java. util. Scanner;
public class U4_L1_5_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System. in);
int num = scan. nextInt();
while(num >= 0){
int prod = 1;
num--;
prod = prod*num;
}
System. out. println(prod);
}
}
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 13:30
In mmf2, what is the grid? a. a toolbar that lets you open libraries and use the objects in them in your games b. an object that creates the background or other scenery for a game c. a set of vertical and horizontal lines that are usually invisible in the play area d. a set of vertical and horizontal lines that are usually visible in the play area
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:50
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 14:00
Which describes careers that have similar education requirements but different qualifications? product safety engineers and materials engineers industrial safety engineers and industrial health engineers quality control systems managers and inspectors industrial safety and health engineers and hand packers
Answers: 3
You know the right answer?
Questions
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
History, 27.04.2021 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 27.04.2021 01:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 27.04.2021 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 27.04.2021 01:00
![question](/tpl/images/cats/biologiya.png)
Biology, 27.04.2021 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 27.04.2021 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 27.04.2021 01:00
![question](/tpl/images/cats/en.png)
English, 27.04.2021 01:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
English, 27.04.2021 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 27.04.2021 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 27.04.2021 01:00