COMP 10005 Middle East College ?Introduction to Programming Questions

User Generated

fvfu1990

Programming

COMP 10005

middle east college

COMP

Description

Unformatted Attachment Preview

Introduction to Programming Instructions to Student ● Answer all questions. Assignment Learning Outcomes The following LOs are achieved by the student by completing the assignment successfully 1) Describe the fundamentals of programming and the use of representing programming logic/numbers 2) Use different data types and operators in a programming language 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. Assignment Tasks 1) Submit a work proposal for this assignment in Individual Word File which must include: Timeline for completion of the given tasks. General overview of proposed plan - initial understanding of all tasks Identification of Literature Resources MEC_AMO_TEM_034_01 Page 1 of 9 Introduction to Programming (COMP 10005) – Spring - 20 – CW1 (Assignment-1) – All – QP 2) Write a java program to print following pattern using inner loop concept 3 5 7 9 2 4 6 8 13 15 10 12 11 17 19 SAMPLE INPUT / OUTPUT SCREEN (1): SAMPLE INPUT / OUTPUT SCREEN (2): MEC_AMO_TEM_034_01 Page 2 of 9 Introduction to Programming (COMP 10005) – Spring - 20 – CW1 (Assignment-1) – All – QP 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 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. NOTE:- you have to use switch case selection structure for this program SAMPLE INPUT / OUTPUT SCREEN :: MEC_AMO_TEM_034_01 Page 3 of 9 Introduction to Programming (COMP 10005) – 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. z1 = a + (b * c ) % 33; z2 = a +b ^ 3 + 8 / (2*c); z3 = !(a < c) || (a9); SAMPLE OUTPUT SCREEN 5. Write your reflection about Task2, Task3 and Task 4 including the tracing of the output for each of the programs. Rules & Regulations: ● All resources should be cited using CU Harvard style. ● The final assignment must have a Title page, Table of Contents, References/ bibliography using CU Harvard Style and page numbers. ● Title Page must have Assignment Name, Module name, Session, your name, ID, and the name of the faculty. Softcopy in word format is to be submitted through Turnitin link on Moodle. Viva may be conducted after the assignment submission as per the dates informed earlier. ● ● MEC_AMO_TEM_034_01 Page 4 of 9 Introduction to Programming (COMP 10005) – Spring - 20 – CW1 (Assignment-1) – All – QP Guidelines: ● Assignment must be computer typed. Font - Times New Roman Font – Style - Regular Font - Size - 12 Heading should be with Font Size 14, Bold, Capital and Underline. ● Explain with suitable diagrams wherever required. Diagrams must be drawn using suitable software or by pencil. ● Each student has to do the assignment individually / Students have to do the assignment collaboratively and each student should write a brief reflection on their contribution and learnings from group work. ● You can refer books in eLibrary or use internet resource. But you should not cut and paste material from internet nor provide photocopied material from books. The assignment answers should be in your own words after understanding the matter from the above resources. MEC_AMO_TEM_034_01 Page 8 of 9 Introduction to Programming (COMP 10005) – Spring - 20 – CW1 (Assignment-1) – All – QP Assessment Sheet –Assignment Analysis (ITP COMP 10005- Semester: Spring 2020) Deliverable s Task 1(WP) 0 No submission Deliverable s Task 2 Deliverable s Task 3 Deliverables Task 4 Deliverables Task 5 6-10 1-5 Partial completion 0 0110 Complete and accurate in all aspects 11-17 18-22 23-25 Incomplet e solution not as per the scenario given. Partially correct solution not as per scenario. Satisfactory use of relevant data types, keywords used but some codes are missing and class have some errors in logic and syntax. Demonstration of use of relevant data types and keywords for implementing the solution of the problem but with some minor omissions or errors in logic/syntax. 0 01-10 11-17 18-22 Incomplete solution not as per the scenario given. Partially correct solution not as per scenario. Satisfactory use of relevant data types, keywords used but some codes are missing and class have some errors in logic and syntax. Demonstration of use of relevant data types and keywords for implementing the solution of the problem but with some minor omissions or errors in logic/syntax. 0 01-4 5-6 7-8 Incomplet e solution not as per the scenario given. Partially correct solution not as per scenario. Satisfactory use of relevant data types, keywords used but some codes are missing and class have some errors in logic and syntax. Demonstration of use of relevant data types and keywords for implementing the solution of the problem but with some minor omissions or errors in logic/syntax. Comple te and accurat e in all aspects 0 01-15 16-24 25--27 28-30 Satisfactorily written reflection covering explanation on all tasks Well written reflection with literature underpinning Comple te and accurat e in all aspects Incomplet e reflection Partially written reflection on all tasks Comple te and accurat e in all aspects 23-25 Compl ete and accurat e in all aspect s 9-10 Page 9 of 9
Purchase answer to see full attachment
Explanation & Answer:
4 Questions
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hi buddy, I have finished the assignment. Thank you for giving me that opportunity to work with you.

INTRODUCTION TO PROGRAMMING
The main goal of this assignment is to help the students learn the use of various data types,
decision making, and literature constructs to solve specific problems using Java. Below is a
timeline and a general overview of how the tasks will be carried on.
Timeline
Phases

Description of Work

Start and End Dates

Phase One

Print patterns using control statements

30/04/2020

Phase Two

Calculate tax amount value using
appropriate data types and control
statements.

01/05/2020

Phase Three

Evaluate expressions using data types and
operators.

05/05/2020

Phase Four

Self -Reflection

06/05/2020

Overview
Having learned the core basic fundamentals of programming makes it easier for developers to
switch between different programming languages since the principles apply to all languages
(Al-Nakhlani 2018). In the above tasks, control statements will be required to execute tasks
whose flow changes based on a certain condition, for example, when printing the patterns, the
first line to be printed should consist of odd numbers if the user enters an odd number and vice
versa. This will also apply to the second task where the flow of computing tax amount will be
determined by the type of Income Tax and period of payment.
Since Java is a strongly typed language, the type of each variable used in each program will
be strictly defined.

References
1. Al-Nakhlani, G. (2018) What Are The Fundamentals Of Programming? - DEV
Community [online] available from [5 May 2020]
2. Java - Datatypes | Learn JAVA Online | Fresh2refresh.Com (2020) available from
[5 May 2020]


Running Head: INTRODUCTION TO PROGRAMMING

...


Anonymous
Great! 10/10 would recommend using Studypool to help you study.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags