Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

double x,y,a,b,c; x= 1; y=4; a=10;y=20;c = 5;b= 30; double result = (3+4*x)/5 - 10*(y-5)*(a+b+c)/x+ 9*(4/x +(9+x)/y); System.out.println(result is:+result); In this lab-3. I assigned values

double x,y,a,b,c; x= 1; y=4; a=10;y=20;c = 5;b= 30; double result = (3+4*x)/5 - 10*(y-5)*(a+b+c)/x+ 9*(4/x +(9+x)/y); System.out.println("result is:"+result);

In this lab-3. I assigned values like 1 4 for x and y.

you need to ask user to enter values for x,y,a,b, and c and print the result.

Follow the lab-3, it is similar. No worries. Just do it.

give your name as a comment at the type of you class.

/*

*/

public class SimpleAssignment

{

public static void main(String [ ] args)

{

// start here

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions