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

Add to cart

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Add to cart

Instant download

We Accept:

We Accept

Also available in bundle (1)

MANCOSA (Pty) Ltd - Claremont - INFORMATIC

MANCOSA (Pty) Ltd - Claremont - INFORMATIC

By Muchiri 3 years ago

$29

10  

Reviews( 0 )

$7.00

Add to cart

We Accept:

We Accept

Instant download

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

OR

REQUEST DOCUMENT
43
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 21, 2021

Number of pages

3

Written in

Seller


seller-icon
Muchiri

Member since 3 years

209 Documents Sold


Additional information

This document has been written for:

Uploaded

Apr 21, 2021

Downloads

 0

Views

 43

Document Keyword Tags

What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·