Can you write a java application that calculates the value of the following expressions
a+=b/c%d++ and bx<<=8
The range of values for a=5, b=5, c=3, and d=2
bx values are -1,0,1,2,3,7,16
7 1781
Can you write a java application that calculates the value of the following expressions
a+=b/c%d++ and bx<<=8
The range of values for a=5, b=5, c=3, and d=2
bx values are -1,0,1,2,3,7,16
You need to show some of your own effort first before people can start helping you out.
You need to show some of your own effort first before people can start helping you out.
Hello, I need the same help. I got to write a java application a+=b/c%d++
a=5, b=4, c=3, and d=2 and bx<<=8
I can send you what I have been working with if you want me to. Thanks
Hello, I need the same help. I got to write a java application a+=b/c%d++
a=5, b=4, c=3, and d=2 and bx<<=8
I can send you what I have been working with if you want me to. Thanks
post the code you have been working on then we can try to help
Hello, I need the same help. I got to write a java application a+=b/c%d++
a=5, b=4, c=3, and d=2 and bx<<=8
I can send you what I have been working with if you want me to. Thanks
Yes, please send the program that you have written.
Can you write a java application that calculates the value of the following expressions
a+=b/c%d++ and bx<<=8
The range of values for a=5, b=5, c=3, and d=2
bx values are -1,0,1,2,3,7,16
I think the value of a will be 5 ??right???
but I don't know what does he mean and want bat the expression "bx<<=8"
here is a sample code - public class MM {
-
public static void main(String args[])
-
{
-
int a=5,b=5,c=3,d=2;
-
int bx[]={-1,0,1,2,3,7,16};
-
System.out.println(a+=b/c%d++ );
-
for(int i=0;i<7;i++)
-
System.out.println(bx[i]<<=8);
-
}
-
}
and here is the sample outputs: - 6
-
-256
-
-
256
-
512
-
768
-
1792
-
4096
anybody please tell me if i am wrong .
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Ravi Tallury |
last post by:
Hi
We are having issues with our application, certain portions of it stop
responding while the rest of the application is fine. I am attaching
the Java Core dump. If someone can let me know what...
|
by: Wolfgang Keller |
last post by:
Hello,
as a non-developer I am currently participating in an industrial "research"
project to develop a so-called "web application". This application serves
at the same time as middleware to...
|
by: Ajay |
last post by:
hi!
can you call a Python application from a Java program? does this require
any additional package to be installed?
thanks
cheers
|
by: DrUg13 |
last post by:
In java, this seems so easy. You need a new object
Object test = new Object() gives me exactly what I want.
could someone please help me understand the different ways to do the
same thing in...
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej...
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: himilecyclist |
last post by:
My State government organization has written a PHP/MySQL application
which has been in production for about 6 months and has been highly
successful.
We are now embarking on a similar database...
|
by: r035198x |
last post by:
Setting up.
Getting started
To get started with java, one must download and install a version of Sun's JDK (Java Development Kit).
The newest release at the time of writting this article is...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |