Suppose you have an int variable called number. what java expression produces the second-to-last digit of the number (the 10s place)? what expression produces the third-to-last digit of the number (the 100s place)?

Answers

Answer 1
private int number = 123;
// using this number "123"

int hundred = (number % 10); // gets third to last
number /= 10;
int tenth = (number % 10); // gets second to last
number/=10;
int ones = (number % 10); // first digit

 

Related Questions

In the late 1950s, the most likely setting for computers was a(n) _____. home college classroom specialist government laboratory, e.g., a military lab art gallery

Answers

Final answer:

In the late 1950s, computers were mostly found in specialist government laboratories, major corporations, and universities. They were large, expensive mainframes until the introduction of more accessible minicomputers and personal computers in later decades.

Explanation:

In the late 1950s, the most likely setting for computers was a specialist government laboratory, such as a military lab. Early computers like the UNIVAC I and the IBM 701 were large mainframe computers used primarily by government agencies, large businesses, and universities due to their high costs and complex data management systems. It wasn't until the 1970s that minicomputers became somewhat more accessible and later, in the late 1970s and early 1980s, fully assembled personal computers started to appear in businesses and upper-middle-class homes.

why has unicode become the standard way of converting binary to text

Answers

 Unicode is the standard for the internal text coding system (encoding, representation, and handling of text). It is used in almost all operating systems. The main reason why Unicode has become the standard way of converting binary to text (despite that there were several other ways) is that it is compatible with all world languages. 

What is the maximum number of different codes that can be represented in 2 bytes?

Answers

A two byte word has 16 bits, so there are 2^16 possible values.

"bing ads keyword planner allows you to search for new keywords using a phrase, website, or category. from which bing ads tabs can you access keyword planner?"

Answers

The navigation is very simple

1.On the top menu, click Tools -> click Keyword Planner.

2.Then you can click Search for new keywords using a phrase, website, or category.

In case if you want to multiply key word list to get new keywords, follow below steps.

1.On the top menu, click Tools -> click Keyword Planner.

2.Click Multiply keyword lists to get new keywords.

One of the earliest uses of an electronic digital computer involved ________.

Answers

The uses of earliest electronic digital computer involved many things such as computing or even learning informations but the earliest of use as to why it is also built is to be able to determine and note the weather forecast in a specific place.

What does a process belong to if it no longer belongs to the user linux?

Answers

Unless you create a user linux, there's no user linux.

I think you're asking about zombie processes.

please help
Which part of the computer controls the calculations that are requested of the central processing unit?
A-RAM
B-ALU
C-CISC
D-RISC

Answers

the answer is A- RAM

In 1-2 paragraphs discuss the three main purposes of design and provide examples for each. Also explain how a design might serve two or more of these purposes.

Answers

Answer and Explanation

A design is is is where one creates a plan when he or she wants to construct or to come up with a a certain or a specific object.It might be a a system, a business process e.t.c

The main purposes of the design process are :

i)The establishment of instructional effectiveness- This one helps in defining the goals for the required  outcome in the accomplishment of the process. An example the student will understand the procedure of system development

ii) It guides the in the content development. In this it helps in identification of of the steps to be involved in accomplishing the set goal. and example is if the the goal was to come up with a certain structure, when the necessary steps are followed the goal will come true.

iii)It helps in the identification of the instructions outcome. When you have a design it will help one to exactly implement it to come up with what was in the mind in the end of the process.

This type of peripheral is used to interact with, or send data to, the computer. a,CPU b,Input c,Memory d, Output

Answers

b, input

I'm pretty sure, bc CPU is central processing unti which deals with the internal components, output deals with transfers from the computer to an outside source, and memory doesn't have to do with data transfer
Hi!

Whenever we are going to be sending data, this is known as input.

For example, I'm giving input by typing on my keyboard right now. This is sending data to the device.

Hopefully, this helps!

In windows vista, which process allows you to display two documents side by side?

Answers

By dragging one tab the the top right corner and holding for a few seconds it will automatically take up a certain proportion of the screen. By doing the same to the left side, the documents will be side by side and ready to multi-task with ease. This process is called "splitting screens".
You need to drag one tap to the corner and It will automatically split the screen.

Hope this helps :)

Which type of mail is used for mailing items such as books, catalogs, sound recordings, and video recordings?

Answers

I believe the answer is Media Mail.
Hope I helped,
 Ms. Weasley

A technician configures a switch with these commands: switcha(config)# interface vlan 1 switcha(config-if)# ip address 192.168.1.1 255.255.255.0 switcha(config-if)# no shutdown what is the technician configuring?

Answers

The tech is turning on the vlan 1 interface and setting its address. And telling it to be always "ON".

What symbol following a menu command lets you know that a dialog box will be displayed? an arrow a check mark an ellipse a radio button

Answers

I believe its the radio button

Answer:

radio button

Explanation:

Several <INPUT> tags with the type = "radio" attribute allow us to select an option from those available. Radio buttons in the same group have the same value in the name attribute.

    Syntax:

    <INPUT TYPE = "radio" NAME = "variable" VALUE = "xxx"> description

    Attributes:

    TYPE - type of field to be used;

    NAME - variable that will store the value of the selected option;

    description - text that appears next to the radio button.

You just upgraded the ram on your pc at home. when you boot up the computer, it doesn't recognize the new memory even though it was on the qualified vendor's list (qvl) on the manufacturer's website. what are you going to need to do to solve this problem?

Answers

The RAM may not be recognized because the hardware may not be compatible either with the operating system or the computers BIOS.If your BIOS expired years ago,that means there is not a compatible RAM that can be found easily.If you want to,you must go to amazon.com or an online store that supports old-year electronics.Also,check your BIOS settings to make sure you have BIOS Visibility turned on.
You will need to check the seating and make sure you installed it correctly. Next, you can check if it’s compatible with your motherboard. If so and it is indeed installed correctly, you should clean the electrical contacts, make sure it is installed properly once more, and run a diagnostic test. If it is still not working, you might have a faulty unit so you will need to take it out and test it with another system.

Which ethernet cabling standard defines an ethernet network that uses cat 3 or better utp cabling, operating at 10mbps?

Answers

10BaseT is the name of the standard

Final answer:

The 10Base-T standard defines a 10Mbps ethernet network using Cat 3 or better UTP cabling, part of IEEE 802.3, and commonly used in the 1990s for LANs.

Explanation:

The ethernet cabling standard that defines an ethernet network using Cat 3 or better UTP cabling, operating at 10Mbps, is known as 10Base-T. This standard is part of the IEEE 802.3 specification and became widely used in the 1990s for local area networking. It supports a maximum length of 100 meters per segment and employs a star topology where each device is connected to a hub or a switch.

The first personal computer operating system was named ___________.

Answers

The first personal computer operating system was named DOS.
DOS stands for disk operating system. A system software that manages hardware and software resources is an operating system and the personal computer is used by one person at a time. The first personal computer was the ENIAC (Electronic Numerical Integrator and Computer) which became operational in 1946.

What would you enter at the command prompt on a linux system to display present working directory?

Answers

pwd





---------------------------------

11 identify common pc connector types and associated cables

Answers

- 1. Power with C13 plug
- 2. USB ports with USB cable
- 3. Network port, RJ45 connector
- 4. Audio port, 3.5mm jack
- 5. Display output, HDMI cable
- 6. Display output, DisplayPort cable
- 7. Display output, VGA cable
- 8. Display output, DVI cable
- 9. IEEE1398 port, FireWire cable
- 10. PS/2 port, keyboard or mouse
- 11. Serial port, RS232 D connector
- 12. SCSI connector for disk or printer
- 13. SATA connector for external harddisk
- 14. Optical output for audio, toslink cable

You have purchased a special monitor for your computer and the instructions tell you to make a minor modification to the inittab file. where would you locate this file on a typical linux system?

Answers

As long as it doesn't have systemd: /etc/inittab

The ____________ is the number of rectangles an image has in a square inch.
Question 21 options:

A) Compression


B) DPI


B) Resolution


C) Size

Answers

D size




Read more




































Hope,this helped
The answer is C I’m pretty sure

Maria found a cupcake recipe on a cooking blog. However, she would like to read comments and suggestions before she begins baking. What web resource would be most helpful?
A) Customer service
B) User manual
C) Vendor bulletin board
D) Video tutorial

Answers

The right answer should be C) Vendor bulletin board.

Please Rate this answer and thank me if it helped. :)

Answer:

C) Vendor bulletin board

Explanation:

-Customer service refers to the assistance that helps users with questions or problems that they may have.

-User manual refers to a guide that products have that shows how to use them.

-Vendor bulletin board is a web forum created by the vendor in which users can post information, questions and opinions.

-Video tutorial is a video that teaches how to do something.

According to this, the web resource that would be most helpful for Maria to read comments and suggestions before she begins baking is the vendor bulletin board.

A(n) _________ allows users to communicate and share information between computers

Answers

Salutations!

A(n) _________ allows users to communicate and share information between computers

network allows users to communicate and share information between computers. Network is a design of getting connection through modem, router switch etc. 

Hope I helped.

Have a great day!

Answer:

network

Explanation:

A network refers to two or more computers that are connected to share data and resources like printers. The devices can be linked through cables, telephone lines, WiFi, among others. According to this definition, the answer is that a network allows users to communicate and share information between computers.

Which motherboard slot has direct access to the north bridge?

Answers

The Primary PCIe slot has direct access to the north bridge. Many machines now have more than one PCIe slot and they are typically used for graphics cards.

Why should you use a named constant for the size of an array?

Answers

I can think of the following reasons:

- Avoid magic numbers. The constant will have a descriptive name like "MAX_MEASUREMENTS" so it can be inferred what the array size really means.

- Avoid duplication. There could be some related code (e.g., code that checks if an index is within the array bounds) that can benefit from using the same constant. Then it makes sense to tie them together such that if you change the constant, you're actually changing all its occurrances.

- Central configuration. By placing all your constants in a centralized place in the code, it is clear to see where your configuration resides. This is easier than having magic numbers scattered throughout the code.

Which service is enabled on a cisco router by default that can reveal significant information about the router and potentially make it more vulnerable to attack?

Answers

CDP is the service that is enabled in a cisco router or all supported interfaces by default to send and receive CDP information. However, some interfaces, such as ATM interfaces, do not support CDP. It can also be diable on an interface that supports CDP.

Write a program that calculates the cost of a phone call. The user enters a positive integer that
indicates the length of the call. The first two minutes of a phone call cost a flat $1.50. Minutes 3 to 10
cost 50 cents each. Each minute after 10 costs 25 cents each.
For example:
How many minutes is the call?
13
A 13 minute call costs 6.25

MY CODE SO FAR:
import java.util.Scanner;
public class Third {
public static void main (String[]args) {
Scanner num = new Scanner (System.in);
System.out.println("Enter number of minutes");
int x = num.nextInt();


I have gotten this far but im not sure what the rest is and how I would create the code for adding minutes. I know it has to do with final but not sure where to start. Thanks.

Answers

Here's an example Python code that calculates the cost of a phone call based on the length of the call:

print("How many minutes is the call?")

call_length = int(input())

if call_length <= 2:

   cost = 1.50

elif call_length <= 10:

   cost = 1.50 + (call_length - 2) * 0.50

   cost = 1.50 + 8 * 0.50 + (call_length - 10) * 0.25

print("A", call_length, "minute call costs", round(cost, 2))

In this code, we first ask the user to enter the length of the call in minutes. We then use an if-elif-else statement to calculate the cost of the call based on the length. If the call is 2 minutes or less, the cost is a flat $1.50.

If the call is between 3 and 10 minutes, the cost is $1.50 plus 50 cents per minute after the first 2 minutes.

If the call is longer than 10 minutes, the cost is $1.50 plus $4.00 for the first 8 minutes, plus 25 cents per minute after the first 10 minutes.

We then use the round() function to round the cost to two decimal places and print the result.

Here's an example output for a 13-minute call:

How many minutes is the call?

13

A 13 minute call costs 6.25

One way to make a data table stand out on the screen and help bring the viewer’s attention to it is to add a shadow behind the table. How can a PowerPoint user add a shadow to a table?

by choosing the Layout tab under Table Tools, clicking on Effects, and selecting Shadow
by choosing the Layout tab under Table Tools, clicking on Shading, and selecting Shadow
by choosing the Design tab under Table Tools, clicking on Effects, and selecting Shadow
by choosing the Design tab under Table Tools, clicking on Shading, and selecting Shadow

Answers

A user can add a shadow to a table on Power Point presentation, by choosing the Layout tab under Table Tools, clicking on Effects, and selecting Shadow. The shadow can be inner, outer or perspective. The most commonly used is outer shadow.
Adding a shadow behind the table will make the data table to stand out on the screen and help bring the viewer’s attention.
Shades can be added also on text, tables, pictures inserted in the presentation and other object. 

Answer:

a

Explanation:

The _______ number system allows digital devices to represent virtually any number simply by using 0s and 1s.

Answers

binary number system. With n bits you can create 2^n numbers.

Answer: the answer is binary code  

Explanation  binary is made of 1s and 0s

"giga" can mean both 109 and 230. explain to what each refers. can this cause confusion when reading a computer advertisement?

Answers

Final answer:

The term "giga" refers to 10^9 or one billion in the metric system and 2^30 or slightly more than a billion in computer science. This can cause confusion in computer advertisements as manufacturers and operating systems might use different definitions, affecting the perceived storage capacity.

Explanation:

The term "giga" can indeed refer to two different values. In the metric system, "giga" denotes a factor of 109, which means one billion. For example, one gigabyte (GB) in this context is a billion bytes. However, in computer science, due to the binary nature of computing, "giga" often represents 230, which is 1,073,741,824, slightly more than one billion. This binary-based representation is commonly used to express computer memory and storage capacity.

Given that computers operate in binary code, when measuring memory (RAM) and storage (like hard drives and SSDs), we use multiples of 1024 (which is 210), as opposed to the decimal system's 1000. Therefore, one gigabyte in the context of computer storage is actually 1024 megabytes, not the exact billion that the prefix "giga" initially suggests from a purely decimal perspective.

This dual meaning of "giga" can indeed cause confusion while reading computer advertisements, as some manufacturers may use the decimal representation (109) for storage devices, while operating systems might report storage capacity using the binary representation (230). It's important for consumers to be aware of the context in which "giga" is used to understand the actual capacity of the product they are purchasing.

Tara has found a CTSO she’s interested in joining. How can Tara become a member of the CTSO? Tara can become a member of the CTSO by visiting the school office and paying the membership__________.

Answers

membership fees! hope it helps

Answer:

Fee

Explanation:

you will need to pay a fee.

Other Questions
Given that x is a number that is not negative, Kelvin conjectured that x^2>x+1 .Which value is a counterexample to Kelvin's conjecture?12205 In your own words, what is the meaning of tolerance? What is the likely purpose of the non-profit organization mental health america? The table shows the record monthly high and low temperatures for a city in Alaska. Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec High(F) 56 57 56 72 82 92 84 85 73 64 62 53 Low(F) -35 -38 -24 -15 1 29 34 31 19 -6 -21 -36 a. Find the range of temperatures for each month.b. What are the all-time high and low temperatures? c. What is the range of the temperatures in part (b)? A nurse is caring for a child with tinea pedis. which assessment finding should the nurse expect Which of the following numbers is classified as an irrational number?A.) Square root of 72B.) 7.444444C.) -3D.) -1/20 Marcus manages to flag down a vehicle and they get more than they bargained forIt was a military-looking Jeep, like an armored Hummer, only it didn't have any military insignia on it. The car skidded to a stop just in front of me, and I jumped back and lost my balance and ended up on the road. I felt the doors open near me, and then saw a confusion of booted feet moving close by. I looked up and saw a bunch of military-looking guys in coveralls, holding big, bulky rifles and wearing hooded gas masks with tinted face-plates.I barely had time to register them before those rifles were pointed at me. I'd never looked down the barrel of a gun before, but everything you've heard about the experience is true. You freeze where you are, time stops, and your heart thunders in your ears. I opened my mouth, then shut it, then, very slowly, I held my hands up in front of me.The faceless, eyeless armed man above me kept his gun very level. I didn't even breathe. Van was screaming something and Jolu was shouting and I looked at them for a second and that was when someone put a coarse sack over my head and cinched it tight around my windpipe, so quick and so fiercely I barely had time to gasp before it was locked on me. I was pushed roughly but dispassionately onto my stomach and something went twice around my wrists and then tightened up as well, feeling like baling wire and biting cruelly. I cried out and my own voice was muffled by the hood. I was in total darkness now and I strained my ears to hear what was going on with my friends. I heard them shouting through the muffling canvas of the bag, and then I was being impersonally hauled to my feet by my wrists, my arms wrenched up behind my back, my shoulders screaming. I stumbled some, then a hand pushed my head down and I was inside the Hummer. More bodies were roughly shoved in beside me."Guys?" I shouted, and earned a hard thump on my head for my trouble. I heard Jolu respond, then felt the thump he was dealt, too. My head rang like a gong. "Hey," I said to the soldiers. "Hey, listen! We're just high school students. I wanted to flag you down because my friend was bleeding. Someone stabbed him." I had no idea how much of this was making it through the muffling bag. I kept talking. "Listenthis is some kind of misunderstanding. We've got to get my friend to a hospital"Someone went upside my head again. It felt like they used a baton or somethingit was harder than anyone had ever hit me in the head before. My eyes swam and watered and I literally couldn't breathe through the pain. A moment later, I caught my breath, but I didn't say anything. I'd learned my lesson.In three to five sentences, summarize the conflict Marcus is facing in this excerpt. The ______ clause says that the national government by make all laws "necessary and proper to carry out enumerated power. supremacy full faith and credit elastic inherent powers the king of Ghana controlled the trade of which two commodities What continents did north america used to be attached to during pangaea time? Find an equation for the nth term of the arithmetic sequence.a16 = 21, a17 = -1 an = 351 + 22(n + 1) an = 351 - 22(n + 1) an = 351 + 22(n - 1) an = 351 - 22(n - 1) The quotient of two consecutive positive integers is 1.02. What is the sum of these two integers?Plz help asap I need it badly How many electoral votes does washington dc have? Which of the following choices best describes the purpose of the Sugar Act?A)The British wanted to allow the colonists to pay lower taxes on sugar.B)The British wanted the colonies to contribute more to the costs of defendingtheir territory.C)The British wanted to create more competitors for trade with the colonies.D)The British wanted to stop colonists from using sugar and molasses. Any healthcare team member who leave their desks must be sure to To people in the deaf culture, sign language is the type of nonverbal communication through which they can communicate. true or false. explain your answer. what are the three hallmarks of science Who was the leader of the political machine that controlled New York in the late 1800s using birbery and intimidation? The revenue from selling x shirts is r(x) = 11x.The cost of buying x shirts is c(x) = 6x + 20.The profit from selling x shirts is p(x) = r(x) c(x).What is p(x)?MULTIPLE CHOICE: A.p(x) = 17x + 20 B.p(x) = 17x 20 C.p(x) = 5x + 20 D.p(x) = 5x 20 Read the argument below: My cousin's school just changed to a 6 a.m. start time, and everybody liked the change. That means an earlier start time would be good for our school. What kind of logical fallacy is used here? A.Logical deduction B.Non sequitur C.Circular reasoning D.Hasty generalization Steam Workshop Downloader