Course name: Introduction to Computing and Information Technology kindly find attached the homework that needs the solution.



Faculty of Computer Studies

Course Code: TM111

Course Title: Introduction to computing and information technology 1

Tutor Marked Assignment

Cut-Off Date:TBA Total Marks: 20


Plagiarism Warning:

As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.

Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work):

I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work.

Important Note:

  • For all questions you need to write the full algorithm and implement the algorithm by using OUBILD script. The student should provide provide one screenshot for the OUBUILD script and two screenshots for differnt outputs.

  • If you will not provide SCREENSHOTs you will lose grades

Name of Student:

Signature:

Date:

Question1: (8 marks)

A computer shop will build a computer from components to meet a customer’s requirements. For each request for a computer to be built, an estimate of the cost is produced. The component stock level is checked; if all the components are in stock, a firm order to build the computer can be placed. The algorithm is required to work out the cost of the computer, update the stock levels and provide a daily summary of orders for the shop owner.

Write an algorithm to calculate the cost of building a computer using these components.

• Your program must include appropriate prompts for the entry of data.

• Error messages and other output need to be set out clearly and understandably.

• All variables, constants and other identifiers must have meaningful names

Course name: Introduction to Computing and Information Technology  kindly find attached the homework that needs the solution. 1

The customer makes a choice for each component and an estimate is produced. The estimate must also show the total cost of the computer, which is calculated as the sum of the cost of the components chosen plus 20%.

Use the OUBUILD to run and check your algorithm is working right or not and provide screenshots for the OUBUILD code and one for the output.


Question 2: (5 marks)

  1. Given a list of unsorted integers, find the smallest product of all possible pairs in the list . For example, if the list [19, 5, 16, 12, 5, 3] then smallest product would be = 15, which is resulted from multiplying (5x3).



.Question 3 : (7 marks)

  1. Convert the following flowchart to Pseudo Code.


Course name: Introduction to Computing and Information Technology  kindly find attached the homework that needs the solution. 2


B-Use the OUBUILD to find the output for the input data1.8, 2.0, 1.0, 1.3, 1.0, 2.5, 2.0, 1.3, 1.8, 1.3, –1 and print the final result.

Provide screenshots for the OUbuild code.



End of the question