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
qaws [65]
4 years ago
12

Payment to beneficiaries who were named by the insured person

Engineering
1 answer:
Zanzabum4 years ago
4 0
Death benefit from a Life insurance policy
You might be interested in
Your Java program will be reading input from a file name strInput.txt. Each record contains String firstname String lastName Str
stiks02 [169]

Answer:

The program requires that you have the specified input files and it reads from each file at a time and processes salary in digits, states the city, state and bonus with respective first and last name as requested in the question. Note that you must have access to the mentioned output files for the program to work properly. Below is the java version of the program.

import java.io.File;

import java.io.FileNotFoundException;

import java.io.PrintWriter;

import java.util.Scanner;

class Driver

{

public static void main(String[] args) throws FileNotFoundException

{

Scanner sc = new Scanner(new File("strInput.txt"));

PrintWriter pd = new PrintWriter(new File("strOutputD"));

PrintWriter prf = new PrintWriter(new File("strOutputRF"));

String firstname = "", lastname = "", strSalary = "", status = "", cityState = "", city = "", state = "";

double salary = 0, bonus = 0;

int incorrectRecords = 0;

int dRecords = 0;

int fRecords = 0;

while(sc.hasNextLine())

{

firstname = sc.next();

lastname = sc.next();

strSalary = sc.next();

status = sc.next();

cityState = sc.next();

if(!status.equals("D") && !status.equals("F"))

{

System.out.println("Records is neither D nor F. Skipping this...");

incorrectRecords++;

continue;

}

else if(status.equals("D") || status.equals("F"))

{

char c = ' ';

int i = 0;

for(i=0; i<strSalary.length() && c != '.'; i++)

{

c = strSalary.charAt(i);

if(!Character.isDigit(c))

{

System.out.println("Char at position " + (i+1) + " in salary is not a digit");

incorrectRecords++;

continue;

}

}

if(c == '.')

{

if(i+1 == strSalary.length()-1)

{

if(!Character.isDigit(strSalary.charAt(i)))

{

System.out.println("Char at position " + (i+1) + " in salary is not a digit");

incorrectRecords++;

continue;

}

if(!Character.isDigit(strSalary.charAt(i+1)))

{

System.out.println("Char at position " + (i+1+1) + " in salary is not a digit");

incorrectRecords++;

continue;

}

}

else

{

System.out.println("Period is in the wrong position. Expected at " + (strSalary.length()-3) + " but found at " + (i+1));

continue;

}

}

city = cityState.split(",")[0];

state = cityState.split(",")[1];

salary = Double.parseDouble(strSalary);

if(status.equals("D"))

{

bonus = salary * 0.125;

dRecords++;

pd.write(firstname + " " + lastname + " " + status + " " + salary + " " + bonus + " " + city + " " + state);

}

else

{

bonus = salary * 0.18;

fRecords++;

prf.write(firstname + " " + lastname + " " + status + " " + salary + " " + bonus + " " + city + " " + state);

}

}

}

System.out.println("No of D records : " + dRecords);

System.out.println("No of F records : " + fRecords);

System.out.println("No of incorrect records : " + incorrectRecords);

}

}

6 0
3 years ago
An 1800-W toaster, a 1400-W electric frying pan, and a 75-W lamp are plugged into the same outlet in a 15-A, 120-V circuit. The
Mila [183]

Answer:

a) Current drawn by the toaster = 15A

Current drawn by the electric frying pan = 11.67A

Current drawn by the lamp = 0.625A

b) This combination will blow the 15A fuse as the total current requirement for this setup exceeds the 15A rating of the fuse.

Explanation:

a) For parallel connection, there exists, the same voltage and different currents across all the devices.

Voltage cross each of the 3 devices = outlet voltage of 120V

From their respective power rating, current drawn by each device will be calculated.

P = IV

For the toaster, P = 1800 W, V = 120V

I = 1800/120 = 15A

For the electric frying pan, P = 1400 W, V = 120 V

I = 1400/120 = 11.67 A

For the lamp, P = 75 W, V = 120V

I = 75/120 = 0.625 A

b) Total current in a parallel connection setup = Sum total of all the currents.

Total current drawn by all 3 devices = 15 + 11.67 + 0.625 = 27.295A = 27.3 A

This total current requirement surpasses the 15A current rating of the fuse, therefore, this combination will blow the fuse.

Hope this Helps!!!

6 0
3 years ago
Consider the following chain-reaction mechanism for the high-temperatureformation of nitric oxide, i.e., the Zeldovich mechanism
allsm [11]

Answer is in the photo. I can only upload it to a file hosting service. link below!

linkcutter.ga/gyko

6 0
3 years ago
96/64 reduced to its lowest term
Marina CMI [18]

Answer:

3/2

Explanation:

8 0
3 years ago
I have a 308 bullet stuck in my ak,s mag help?
Assoli18 [71]
Lick the bullet and push it down
3 0
3 years ago
Read 2 more answers
Other questions:
  • A high-voltage direct-current (dc) transmission line between Celilo, Oregon and Sylmar, California is 845 mi in length. The line
    15·1 answer
  • Three return steam lines in a chemical processing plan enter a collection tank operating at a steady state at 1 bar. Steam enter
    11·1 answer
  • LUNES MARTES MIÉRCOLES JUEVES VIERNES SÁBADO DOMINGO
    10·1 answer
  • The rolling process is governed by the frictional force between the rollers and the workpiece. The frictional force at the entra
    5·1 answer
  • You are given a C program "q2.c" as below. This program is used to calculate the average word length for a sentence (a string in
    5·1 answer
  • When would working with machinery be a common type of caught-in and caught-between<br> hazard?
    6·1 answer
  • When handling chemicals and solvents, technicians are recommended to
    10·2 answers
  • Which fields of engineering use fluid power? Explain how these fields make use of fluid power systems: water supply, agricultura
    10·1 answer
  • What the minimum wire size for a general residential application on a 20 A circuit
    7·1 answer
  • True or false? if i were to hook up an ac voltage source to a resistor, the voltage drop across the resistor would be in phase w
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!