1 What is the output of the following program if the user inputs 5 followed by 7?
var num1 = parseFloat(window.prompt("Enter a number"));
var num2 = parseFloat(window.prompt("Enter another number"));
var diff = num1 - num2, sum = num1 + num2, product = num1 * num2, quotient = num1 / num2;
if (diff > 0) {
if (sum > 10) {
if (product > 25) {
if (quotient > 1) {
document.writeln("Case 1");
}
} else {
document.writeln("Case 2");
}
}
} else {
if (sum > 10 && product >= 25 && quotient < 1) {
document.writeln("Case 3");
} else {
document.writeln("Case 4");
}
}
Group of answer choices
a Case 2
b Nothing
c Case 4
d Case 3
e Case 1
2 What does a breakpoint do during execution when debugging?
Group of answer choices
a Pauses the program.
b Activates a safe mode for the browser.
c Prints debugging information at this point in the program.
d Nothing.
3 What does Step Into do when debugging?
Group of answer choices
a Brings the debugger out of the current function and pauses the first line in the calling function.
b Brings the debugger into the first line of a function if a function is being called. Otherwise, it brings the debugger to the next line of code in the current function.
c Brings the debugger into the first line of a function if a function is being called. Otherwise, it continues the program.
d Continues execution of the program.
Question 1: output of the following program if the user inputs 5 followed by 7 is Case 3 Answer: Case 3 Question 2: breakpoint Pauses the program during execution when debugging Answer: Pauses the program. Question 3: debugging Brings the debugger into the first line of a function if a function is being called. Otherwise, it brings the debugger to the next line of code in the current function. Answer: Option b
1 What is the output of the following program if the user inputs 5 followed by...
I'm not getting out put what should I do
I have 3 text files which is in same folder with main
program.
I have attached program with it too.
please help me with this.
------------------------------------------------------------------------------------
This program will read a group of positive numbers from three
files ( not all necessarily the same size), and then calculate the
average and median values for each file. Each file should have at
least 10 scores. The program will then print all the...
Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...
For this assignment, suppose that a fence is recording entry and exit into the park via a string as the gate swings open and folks walk in or out with their pet. For example, C++ DP+dp+CP+cp would indicate that an adult dog and an adult entered the park, then a puppy and child entered the park, then an adult cat and an adult entered the park and finally a kitten and a child entered the park. From this information, note...
Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...