In a box of total area 10000cm3, Mr. Varun has to pack the balls of given radius “r” and all the balls have the same volume, Help Mr. Varun to find the total number of balls that he can pack in the given box.
Requirements
Capture the radius of the ball “r”
Compute the volume (Hint: Volume=4/3πr3)
Calculate how many number of balls can be placed in the box of 10000cm3 box Display the number of balls packed by Mr. Varun
1. Describe software architecture in your own words
2. Assume that the men care system as described in the key test is being developed using an object-oriented approach.Draw a use case diagram showing at least six possible use cases for this system.
Using this online IDE, perform the following.
1. Initialize four (4) variables based on the table below.
Data type Variable NameValue
String firstName Your first name.
String lastName Your last name.
char mi Your middle initial
int faveNumber Your favorite number
String faveCartChar Your favorite cartoon or anime character
2. Create statements that would print an output similar to the sample below. Use '+' to combine words and variable names.
Create a program for multiplication, addition, and subtraction with at least 10 different problems for each mathematical option and report the output/input from the user. When the user enters and answer, display total questions X, Total correct answers Y, Total wrong answers Z.
Describe any 10 Core Network Services that will be required in the University of Ghana
Write a java program that accepts a given n, then create a 2D array with n rows and n columns. Then for each cell the value should be n+row to the power column. For example if we talk of n=5, then array[0][0] =(5+0)0 = 1. Print out all the values in the array created.
Write a Java program to simulate an online store. The program should begin by displaying a list of products and their prices. There should be a minimum of 4 products offered. The program should ask the user to choose a product and then ask the user to enter the quantity they require of that product. The program should then allow the user to keep choosing more products and quantities until they enter something to indicate they want to end the program (e.g. a given number or ‘q’ or ‘exit’). The program should then tell the user the total amount for the products they have selected. Students must use array or arraylist to store the products and their prices.
We want to calculate the total marks of each student of a class in Physics, Chemistry and Mathematics and the average marks of the class. The number of students in the class are entered by the user. Create a class named Marks with data members for roll number, name and marks. Create three other classes inheriting the Marks class, namely Physics, Chemistry and Mathematics, which are used to define marks in individual subject of each student. Roll number of each student will be generated automatically.
b) Explain the following definitions. For those that are illegal, explain what’s wrong and how to
correct it.
i) const long large;
ii) double salary = wage = 9999.99;
iii) int i = 3.14;
iv) short int big = 40000;
v) int a = b = c = d
Questions:
1.What do you think are the importance of 5S Principles?
2.How will you use the knowledge you acquired about 5S Principles?
3.Cite a situation in which you can apply the knowledge of understanding 5S Principles?