Program that takes input from keyboard - modify it - print the result U can use alert_box or any other method or technique
Added by Ricky M.
Close
Step 1
First, we need to prompt the user to enter some input. We can use the `prompt()` function for this. ```javascript let input = prompt("Enter some input:"); ``` Show more…
Show all steps
Your feedback will help us improve your experience
Dominador Tan and 63 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In the Visual Basic programming language: Show how you would prompt a user to enter a value for an integer variable called age. Ask the user to enter a number for the variable called age. Next, write an input statement to accept the value entered at the keyboard, convert it to a type integer value (use a conversion function) and assign it to the variable called age.
Aarya B.
Formulate a pseudocode algorithm for each of the following: a. Obtain two numbers from the keyboard, compute their sum, and display the result. b. Obtain two numbers from the keyboard, determine and display which (if either) is the larger of the two numbers. c. Obtain a series of positive numbers from the keyboard, determine and display their sum. Assume that the user types the sentinel value -1 to indicate "end of data entry." d. Also, draw a flowchart of each of the above pseudocode.
Madhur L.
Using Javascript- Write a while loop to be used to test a password. The password is "secret" and the code within the loop is executed until the user inputs the correct password. Use the prompt() function to accept user password
Haricharan G.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD