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
svetoff [14.1K]
4 years ago
14

Type a C statement that declares and initializes variable taxRate to the value 0.085. Make sure to include a prefix 0 before typ

ing the .085
Engineering
1 answer:
Blizzard [7]4 years ago
7 0

Answer:

float taxRate = 0.085f

Explanation:

Variable initialisation in C (or any other programming language) is a way of declaring variable and assigning some values to the variable declared.

To initialise a variable in C, the data type, variable name and value are needed.

The following syntax must be obeyed when initialising a variable:

Data-type variable-name = value

Data-type represents which type of value is going to be stored in the variable.

Variable name, also known as identifier represents valid variable name (name of the allocated memory blocks for the variable).

Value represents the value or content of the declared variable.

You might be interested in
Suppose that the following eight jobs must be scheduled through a car repair facility (repair times are shown in days): Car Repa
Usimov [2.4K]

Answer:

The answer is "F".

Hope this helped!

3 0
3 years ago
For each of the following stacking sequences found in FCC metals, cite the type of planar defect that exists:
lana [24]

Answer:

a) The planar defect that exists is twin boundary defect.

b) The planar defect that exists is the stacking fault.

Explanation:      

I am using bold and underline instead of a vertical line.

a. A B C A B <u>C</u><u> </u>B A C B A

In this stacking sequence, the planar defect that occurs is twin boundary defect because the stacking sequence at one side of the bold and underlined part of the sequence is the mirror image or reflection of the stacking sequence on the other side. This shows twinning. Hence it is the twin boundary inter facial defect.

b. A B C A <u>B C  B C</u> A B C

In this stacking sequence the planar defect that occurs is which occurs is stacking fault defect. This underlined region is HCP like sequence. Here BC is the extra plane hence resulting in the stacking fault defect. The fcc stacking sequence with no defects should be A B C A B C A B C A B C. So in the above stacking sequence we can see that A is missing in the sequence. Instead BC is the defect or extra plane. So this disordering of the sequence results in stacking fault defect.

6 0
4 years ago
Write code (ReverseNames.java) that prompts the user to enter his or her full name, then prints the name in reverse order (i.e.,
yan [13]

Answer:

import java.util.Scanner;

import java.io.*;

public class Main{

    public static void main(String []args){

       

       StringBuilder reversedName = new StringBuilder();

       StringBuilder subName = new StringBuilder();

       

       Scanner myObj = new Scanner(System.in);  // Create a Scanner object

       System.out.println("Enter your full name (last name + first name)");

   

       String name = myObj.nextLine();  // Read user input

       

       for (int i = 0; i < name.length(); i++) {

           

           char currentChar = name.charAt(i);

           

           if (currentChar != ' ') {

               subName.append(currentChar);

           } else {

               reversedName.insert(0, currentChar + subName.toString());

               subName.setLength(0);

           }

       }

       String Resul = reversedName.insert(0, subName.toString()).toString();

       System.out.println("Reverse full name: " + Resul);

    }

}

Explanation:

To solve the problem we used StringBuilder, that allow us to build a string letter by letter, we are using two, one to store temporary information (subName) and the other to store the surname plus name (reversedName). After defining the variables, the program asks for the user fullname using Scanner class and it's method .nextLine (the variable 'name' will save the user input). A while loop is also used to iterate over the name, taking character by character with the method .charAt, the program will append letters in subName until it finds a space only then the content of subName will be transfer to reversedName and the content of subName will be deleted, then the program continues with the process until the end of the for loop; finally, the program places the content of subName at the beginning of reversedName, and print the result transforming the StringBuilder to a normal string.

5 0
3 years ago
it is used to meusure the amount of electric current. A.clamp meter. B .micrometer C steel rule D. electric meter​
Marianna [84]

Answer:

<em>Option D </em>

<em>Electric meter is used to </em><em>measure</em><em> the amount of electric current</em>

6 0
3 years ago
To protect their employees from caught-in and -between hazards, what must employers do?
marusya05 [52]

Answer:

Employers must comply with OSHA's regulations to safeguard workers from caught-in or -between dangers, which include, but are not limited to, the following:

• Protect power tools and other equipment with moving parts with guards.

• Support, secure, or otherwise make safe any equipment that has pieces that workers could become entangled in.

· Take precautions to avoid workers being crushed by tipped-over heavy machinery.

• Take precautions to avoid pinning workers between equipment and a solid object.

• Provide workers with protection when trenching and excavating.

• Provide ways to prevent constructions, such as scaffolds, from collapsing.

Explanation:

5 0
3 years ago
Other questions:
  • A heat pump with an ideal compressor operates between 0.2 MPa and 1 MPa. Refrigerant R134a flows through the system at a rate of
    15·1 answer
  • A damped harmonic oscillator consists of a mass on a spring, with a damping force proportional to the speed of the block. If the
    12·1 answer
  • An inductor is connected to a voltage source and it is found that it has a time constant, t. When a 10-ohm resistor is placed in
    12·1 answer
  • Steam at 320°C flows in a stainless steel pipe (k 5 15 W/m·K) whose inner and outer diameters are 5 cm and 5.5 cm, respectively.
    6·1 answer
  • Giving 100 points for answer plzz
    10·2 answers
  • Training is a way for employers to provide ____ to enable employees to protect themselves and others from injuries.
    9·2 answers
  • What is the foundation​
    12·1 answer
  • A steel wire is suspended vertically from its upper end. The wire is 400 ft long and has a diameter of 3/16 in. The unit weight
    13·1 answer
  • IDENTIFY THE POINTER READING FOR EACH SCALE. COMPUTE THE READING USING THE ASSIGNED RANGE MULTIPLIER FOR OHMMETER SCALE.
    15·2 answers
  • Why dose bob not let humans touch him one and only Ivan
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!