Reference no: EM132506497
COMP 10005 Introduction to Programming - Middle East College
Learning Outcome 1) Describe the fundamentals of programming and the use of representing programming logic/numbers
Learning Outcome 2) Use different data types and operators in a programming language
Learning Outcome 3) Use different program control statements in a programming language
Assignment Objective
The aim of this assignment is to the test student's ability to use data types, various decision making and Iterative constructs to solve specific problems using a programming language.
Tasks
Question 1) Submit a work proposal for this assignment on or before 12/05/2020 (23:59) which must include:
• Timeline for completion of the given tasks.
• General overview of proposed plan - initial understanding of all tasks
• Identification of Literature Resources
The work proposal must be submitted in a word file through the link available in Moodle.
Question 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
|
|
|
|
|
Question 3) Write a java program to calculate the taxable amount and Tax as per following scenario: Calculate Taxable amount that will compute and display the taxable amount based on the following conditions:
• If the type of tax is "Income tax" and the yearly income is greater than 20,000 then taxable amount is twice the yearly income. Otherwise taxable amount is the same as the yearly income. If the type of tax is "Property tax" and the yearly income is greater than 20,000 then the taxable amount is 3 times the yearly income. Otherwise, the taxable amount is twice the yearly income
Calculate tax based on the below given conditions
• If type of tax is "Income tax" and years to pay tax is greater than 1 year, then overall total tax is 3% of the taxable amount. But if years to pay tax are less than 1 year, then overall tax is 2% of the taxable amount. If type of tax is "Property tax" and years to pay tax is greater than 1 year, then overall total tax is 4% of the taxable amount. But if the years to pay tax is less than 1 year, then overall total tax is 3% of the taxable amount.
Question 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.
z1 = a + (b * c ) % 33;
z2 = a +b ^ 3 + 8 / (2*c);
z3 = !(a < c) || (a<b) && (a<c); z4=(z1>z2) && (z1>9);
Question 5. Write your reflection about Task2, Task3 and Task 4 including the tracing of the output for each of the programs.
Attachment:- Introduction to Programming.rar