Write a program using for loop statement that will display a series of number in ascending and descending order and it will also display the odd and even numbers.
Note: Use scanner and for loop statement
Sample output:
Enter a number: 15
Number in ASCENDING orders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Number in DESCENDING orders
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
EVEN Number
2
4
6
8
10
12
14
ODD Number
1
3
5
7
9
11
13
15
Write a program using for loop statement that will display a series of number in ascending and descending order and it will also display the odd and even numbers.
Note: Use scanner and for loop statement
Sample output:
Enter a number: 15
Number in ASCENDING orders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Number in DESCENDING orders
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
EVEN Number
2
4
6
8
10
12
14
ODD Number
1
3
5
7
9
11
13
15
What is usually the critical path of an ERP imple-
mentation?
how many 50 kb jpg files can be stored on a 3 mb folder in your hard drive?
Explain how ICT affects people in all walks of life
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset. Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries. Assume radius of earth: 6371 km Round length ef each line and final result to 2 decimal points f co-ordinates are missing for any country use 0.000NO.000DE Population limit: 28875 Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting Answer *
Create a flowchart that display odd numbers from 1 to n (entered by the user.
Draw a flow diagram for an algorithm which calculates how much money a student will need per week to buy a meal and two drinks each weekday. The user should be prompted to enter how much a meal costs, how much a drink costs, and then calculate and display the total required.
The instructions for this assignment are in the PDF linked here:
https://drive.google.com/file/d/1cnbWBqY8UNjNJIHOxRJTmIvdhKb2QEz3/view?usp=sharing
def test() : # do not change this line!
values = [4, 7, 8, 9, -5] # do not change this line!
# write your code here so that it modifies values
# be sure to indent your code!
print(values)
return values # do not change this line!
# do not write any code below here
test() # do not change this line!
# do not remove this line!
How many rows are in the SFrame? (Do NOT use commas or periods.)