Information Technology > QUESTIONS & ANSWERS > MANCOSA (Pty) Ltd - Claremont - INFORMATIC 1Informatics 1B Project (All)

# MANCOSA (Pty) Ltd - Claremont - INFORMATIC 1Informatics 1B Project

### Document Content and Description Below

Informatics 1B – Project Total = 60 Question 1 (20 marks) Refer to the operations below: Add (10 + 5) Add (4+8) Add (7*2) Add (90 – 3) Print list Print peek Remove an item from the list ... Print list 1.1 Implement the operations above into a Queue structure called q1. (10) 1.2 Implement the operations above into a Stack structure called s1. (10) Question 2 (20 marks) Create a complete java program called Week_Report. The program must include two array structures, a string array called DaysOfWeek and a double array called Temp_Values. Store in the DaysOfWeek array the following values (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday). Store in the Temp_Values array the following (23.5, 34.0, 20.9, 45.7, 29.3, 34.5, 32.5). Using a for loop structure output the values for the two arrays. Day of the Week Temperature Values Monday 23.5 Tuesday 34.0 Wednesday 20.9 Thursday 45.7 Friday 29.3 Saturday 34.5 Sunday 32.5 Question 3 (20 marks) Create an object called Circle. Declare the following integer variables for the object Circle, radius, diameter, and pi is declared as double. Create the following for the Circle object: ● Implicit constructor (default constructor) ● Void method Calculate (double pi, int radius) to calculate the area of the Circle object. The method must include a system.out statement that displays the area value. Use the following formula to calculate area of the circle: Area = pi * (r * r) Your program includes a main class called Shape with a reference c1 to the Circle object. Pass the following values to the object Circle: radius = 4 diameter = 8 pi = 3.14 Include output statements to view the values passed to the object Circle [Show More]

Last updated: 1 year ago

Preview 1 out of 3 pages

OR

OR

## Also available in bundle (1)

##### MANCOSA (Pty) Ltd - Claremont - INFORMATIC

MANCOSA (Pty) Ltd - Claremont - INFORMATIC

By Muchiri 2 years ago

\$29

10

## Reviews( 0 )

### \$7.00

Can't find what you want? Try our AI powered Search

OR

40
0

### Document information

Connected school, study & course

Apr 21, 2021

Number of pages

3

Written in

#### Seller

##### Muchiri

Member since 3 years

208 Documents Sold

This document has been written for:

Apr 21, 2021

0

Views

40

## THE BEST STUDY GUIDES

Avoid resits and achieve higher grades with the best study guides, textbook notes, and class notes written by your fellow students

#### Avoid examination resits

Your fellow students know the appropriate material to use to deliver high quality content. With this great service and assistance from fellow students, you can become well prepared and avoid having to resits exams.

Your fellow student knows the best materials to research on and use. This guarantee you the best grades in your examination. Your fellow students use high quality materials, textbooks and notes to ensure high quality

Get paid by selling your notes and study materials to other students. Earn alot of cash and help other students in study by providing them with appropriate and high quality study materials.

\$7.00