Question
Write a defining table and a program that asks the user for an integer n and then outputs the sum of all the odd integers
Write a defining table and a program that asks the user for an integer n and then outputs the sum of all the odd integers between 1 and n, inclusive.
Criteria:
1. Use text fields () for all user input and place the text fields in the same order that the inputs are listed in the programming problems.
2. When adding a button to your user interface, use the button tag (
3. Always use a div for program output. Dont write your code to display output in a span or a paragraph or any other type of tag. One allowed exception to this rule is that in chapter 9, you can use a text field for output if you wish.
4. The auto-grader searches for your programs output in the last div in your HTML document. Be certain that the last div in your document is the div where your program is displaying its output.
5. Dont write your code to repeat the user input in the output div. If a program is supposed to calculate and output a number, the auto-grader grades the first number it finds in the last div in your HTML document.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started