1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
s344n2d4d5 [400]
3 years ago
14

Assume that name is a variable of type string that has been assigned a value . write an expression whose value is the first char

acter of the value of name . so if the value of name were "smith" the expression 's value would be 's'.
Computers and Technology
1 answer:
4vir4ik [10]3 years ago
7 0

For the first question, you would just add the parenthesis to the string mutation1:

String word = "sadly";

String mutation1 = "(" + word + ")";

For the second you need the method substring from the String class:

It is defined as String.substring(begining, ending);

String name = "Smith";

String firstCharacter = name.substring(0, 1);

0 is considered the beginning of the string, then you get the next 1 characters.

You might be interested in
Can somone give me advice!
DENIUS [597]

Answer:

if you are scared just do it through text and btw life is short go for it

Explanation:

and if he says no there is plenty of more people out there

3 0
3 years ago
Read 2 more answers
How much data do sensors collect?<br>​
Thepotemich [5.8K]

Safety sensors in mining operations can generate up to 2,4 terabits (TB) of data every minute. Sensors in one smart-connected home can produce as much as 1 gigabyte (GB) of information a week.

3 0
3 years ago
Read 2 more answers
"the file that specifies how netbeans builds and deploys the application when you run the application is called the ____________
katen-ka-za [31]
Called the<span>. </span>script<span>. build. When you run a web application, NetBeans. automatically compiles all the files that need to be compiled, deploys th</span>
5 0
3 years ago
Write a C++ program that will convert distance measurements from miles to kilometers. Specifically, the program needs to convert
Sedbober [7]

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// loop that will convert 0,10,20.....90 miles to kilometer

   for(int a=0;a<=90;a=a+10)

   {

   // convert miles to kilometer

       double kilo_m=a*1.609;

       // print the result

       cout<<a<<" miles is equal to "<<kilo_m<<" kilometer."<<endl;

   }

return 0;

}

Explanation:

Run a for loop from 0 to 90.First change 0 miles to kilograms by multiply 1.609. Then Increment "a" by 10 until it "a" is less or equal to 90.And change them into kilometer.

Output:

0 miles is equal to 0 kilometer.

10 miles is equal to 16.09 kilometer.

20 miles is equal to 32.18 kilometer.

30 miles is equal to 48.27 kilometer.

40 miles is equal to 64.36 kilometer.

50 miles is equal to 80.45 kilometer.

60 miles is equal to 96.54 kilometer.

70 miles is equal to 112.63 kilometer.

80 miles is equal to 128.72 kilometer.

90 miles is equal to 144.81 kilometer.

7 0
4 years ago
If a tv was showing a flat black or blue screen or had "snow", what steps would you take to fix it? Give an example of the direc
Dmitrij [34]

Answer:

We have to check the video mode if we see that the TV was showing black or blue screen or had snow.

Explanation:

  • When this situation takes place we have to see first whether the set- top box is working or not.
  • We also need to check whether the TV is in video mode or not , it the TV is in video mode it will be showing blue screen.
  • Snow occurs when there are problems in the circuits, transformers , signal lines etc.
  • When such problems take place we need to install a good quality cable, screened wall plates and need to remove splitters.
6 0
4 years ago
Other questions:
  • Which of the following is not included in the Christian Bible?
    8·1 answer
  • The technology that identifies people through bodily characteristics is known as
    10·1 answer
  • You are working as a Software Programmer for one of the big retail company. You need to implement the program that can store at
    15·1 answer
  • O que é sistema distribuido?
    8·1 answer
  • What is the name of a process thorough which several biometric readings are taken on an individual in order to create an accurat
    11·1 answer
  • A client is asking for a printing solution that will print three sheets of paper with identical information on each page with a
    13·1 answer
  • Which relationship is possible when two tables share the same primary key?
    8·1 answer
  • The music is the soul who says this
    12·1 answer
  • Some file formats are specific to the program that uses them and the operating system on which they are used. True or False
    12·2 answers
  • How to test someone elese internet speed from a distance
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!