Army Transportation and Aviation Logistics School Java Programming Java assignment …………………………………………………………….. .. Stay Home
1:57 PM
moodle.mec.edu.om
MEC_AMO_TEM_034_01
Page 1 of 9
Introduction to Programming (COMP 0303.1) – Spring – 20 -CW1 (Assignment-1) – All – QP
2)
Write a java program to print following pattern using inner loop concept
3 5 7 9 11
2 4
6
8
13
15
17
10
12
19
(25 Marks)
SAMPLE INPUT/OUTPUT SCREEN (1):
5
C:Program Files (x86)XINOXS-1 VCREAT-1GE2001.exe
-Please enter how many lines you want to enter
3 5 7 9 11
2 4 6 8
13
15
17
10
12
19
Press any key to continue…-
SAMPLE INPUT/OUTPUT SCREEN (2):
E C:Program Files (x86)XINOXS-1 CREAT-11 GE2001.exe
Please enter how many lines you want to enter
2 2 4 6 8 10 12 14 16
8
3
5
7 9
11
13
15
18
20
22
24
26
28
17
19
21
23
25
30
32
34
36
27
29
31
38
40
33
Press any key to continue…-
MEC_AMO_TEM_034_01
Page 2 of 9
Introduction to Programming (COMP 0303.1) – Spring – 20 -CW1 (Assignment-1) – All – QP
..l Stay Home
1:57 PM
moodle.mec.edu.om
MEC_AMO_TEM_034_01
Page 3 of 9
Introduction to Programming (COMP 0303.1) – Spring – 20 -CW1 (Assignment-1) – All – QP
4. Write and execute a JAVA program to accept three numbers from the user to evaluate the following
expressions given below. Use appropriate data type for each variable used.
21 = a + (b* c) %33;
z2 = a +b^3 + 8/(2*c);
23 = !a
Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…
TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…
Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…
The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…
you need to post your 2-page information flier to share with your Final Project Group.…
discussion: Discuss the methods used at your company to measure and ensure quality products and…