My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Fill in the order form to get the price
Subject
Select Subject
Programming & Computer Science
Math
Engineering
Economics
Physics
Other
Category
C++
Software Engineering
Java | JSP | JSF
Databases | SQL | Oracle | MS Access
C
Python
Excel
C#
Visual Basic
Computer Networks
Functional Programming
Android
Assembler
UNIX/Linux Programming
ASP | ASP.NET
MatLAB
Wolfram Mathematica
MathCAD
Maple
Perl
Action Script | Flash | Flex | ColdFusion
Ruby | Ruby on Rails
Prolog
Objective-C | Swift
Algorithms
Web Development
HTML/JavaScript Web Application
NodeJS Web Application
Other
Deadline
Timezone:
Title
*
Task
*
{"ops":[{"insert":"Write a program that does the following:\n\n1. Initialize the variables.\n2. Prompt the user to enter 20 numbers. \n3. For each number in the list: \na. Get the next number. \nb. Output the number (echo input). \nc. If the number is even: {i. Increment the even count. ii. If the number is zero, increment the zero count. }otherwise, Increment the odd count. \n4. Print the results.\n1. You can initialize the variables "},{"attributes":{"bold":true},"insert":"zeros"},{"insert":", "},{"attributes":{"bold":true},"insert":"evens"},{"insert":", and "},{"attributes":{"bold":true},"insert":"odds "},{"insert":"when you declare them. \n2. Use an output statement to prompt the user to enter 20 numbers. \n3. For Step 3, you can use a for loop to process and analyze the 20 numbers. \nIn pseudocode, this step is written as follows: for "},{"attributes":{"bold":true},"insert":"(counter = 1; counter <= 20; counter++) { "},{"insert":"a. get the number; b. output the number; c. switch "},{"attributes":{"bold":true},"insert":"(number % 2) "},{"insert":"\/\/check the remainder "},{"attributes":{"bold":true},"insert":"{ "},{"insert":"case "},{"attributes":{"bold":true},"insert":"0: increment the even count; "},{"insert":"if "},{"attributes":{"bold":true},"insert":"(number == 0) increment the zero count; "},{"insert":"break"},{"attributes":{"bold":true},"insert":"; "},{"insert":"case "},{"attributes":{"bold":true},"insert":"1: "},{"insert":"case "},{"attributes":{"bold":true},"insert":"-1: increment the odd count; }"},{"insert":"\/\/end switch "},{"attributes":{"bold":true},"insert":"}"},{"insert":"\/\/end for 4. Print the result. Output the values of the variables "},{"attributes":{"bold":true},"insert":"zeros"},{"insert":", "},{"attributes":{"bold":true},"insert":"evens"},{"insert":", and "},{"attributes":{"bold":true},"insert":"odds"},{"insert":". \n\n"}]}
I need basic explanations
Special Requirements
Upload files (if required)
Drop files here to upload
Add files...
Account info
Already have an account?
Create an account
Name
*
E-mail
*
Password
*
The password must be at least 6 characters.
I agree with
terms & conditions
Create account & Place an order
Please fix the following input errors:
dummy