COMP 10005 Middle East College ?Introduction to Programming Questions

Description

1 attachmentsSlide 1 of 1attachment_1attachment_1

Unformatted Attachment Preview

Introduction to Programming
Instructions to Student

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.
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);

Reviews, comments, and love from our customers and community

Article Writing

Great service so far. Keep doing what you do, I am really impressed by the work done.

Researcher

PowerPoint Presentation

I am speechless…WoW! Thank you so much! Definitely, the writer is talented person. She provided me with an essay a day early before the due date!

Stacy V.

Part-time student

Dissertation & Thesis

This was a very well-written paper. Great work fast. I was in pretty desperate need for help to finish this paper before the due date, which was in nine hours.

Student

Annotated Bibliography

I love working with this company. You always go above and beyond and exceed my expectations every time. Kate did a WONDERFUL job. I would highly recommend her.

Student

Book Report / Review

I received my order wayyyyyyy sooner than I expected. Couldn’t ask for more. Very good at communicating & fast at replying. And change & corrections she put in the effort to go back and change it!

Student

Essay (Any Type)

On time, perfect paper. All concerns & matters I had Tom was able to answer them! I will definitely provide him with more orders!

Student

Case Study

Awesome! Great papers, and early! Thank you so much once again! Definitely recommend to trust James with your assignments! He won’t disappoint!

Kaylin Green

Student

Thank you Dr. Rebecca for editing my essays! She completed my task literally in 3 hours. For sure will work with her again, she is great and follows all instructions

Researcher

Critical Thinking / Review

Extremely thorough summary, understanding and examples found for social science readings, with edits made as needed and on time. It’s like having a tutoring service available (:

Customer

Coursework

Perfect!I only paid about \$80, which i think was a good price considering what my paper entailed. My paper was done early and it was well written!

Student