Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write a program to implement the following formula for a = -10 and b = 4; C = (a + 2b - 4ab)^4 //
1. Write a program to implement the following formula for a = -10 and b = 4; C = (a + 2b - 4ab)^4 // ^4 means to the power of 4 (4 mark) 2. Write a program to implement result = sin(PI / 3) * tan(PI / 4). Use the double data type. (4 mark) 3. Find the volume of a cylinder with radius 2 and height of 4. Remember that V = PI * r * r * height (6 marks) 4. Find the volume of a sphere of radius 2. Remember that v = (4 / 3) PI * (r^ 3) (6 marks) 5. Draw the memory map and the Java compiler table for the following declarations. int i0 = 99887766; int il; short s0 = 3344; byte bo; byte bl short (8 marks) 6. Draw the memory map and the Java compiler table for the following code. String sto = "abcd"; int il; short 30 1122; int io = 11223344; byte bo 33; byte bl; short sl 6655; (12 marks) sli = =
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started