Entries by Student

write my assignment 30995

Main Program:

import java.util.Scanner;

public class ReadingMainExtNew {

 static ReadingExtNew[] readings = new ReadingExtNew[50];

 static int numOfReadings = 0;

 public static void main(String args[]) {

  bulkAdd();// to call reading method and display the menu in console

 }

 // this method is for add reading to the readings array

 private static void bulkAdd() {

  String annotation = null;

  int readingId = 0;

  double value = 0;

  ReadingExtNew reading;

  boolean valid = false;

  Scanner in = new Scanner(System.in);

  while (!valid) {

   System.out.println(“Enter annotation: “);

   annotation = in.next();

   valid = annotation.length() >= 15;

   if (!valid) {

    System.out.println(“Please enter annotation with minimum 15 characters”);

   }

  }

  valid = false;

  while (!valid) {

   try {

    System.out.println(“Enter reading Id: “);

    readingId = in.nextInt();

    valid = true;

   } catch (Exception e) {

    System.out.println(“please enter number”);

    in.next();

   }

  }

  valid = false;

  while (!valid) {

   try {

    System.out.println(“Enter value: “);

    value = in.nextDouble();

    valid = true;

   } catch (Exception e) {

    System.out.println(“please enter number”);

    in.next();

   }

  }

  reading = new ReadingExtNew(annotation, readingId, value);

  readings[numOfReadings] = reading;

  numOfReadings++;

  System.out.println(reading);

  addMenu();

 }

 // this is method is for calculate average value of all readings in readings

 // array

 private static void averageReading(ReadingExtNew[] readings, int numOfReadings) {

  double sum = 0.0;

  double avg = 0.0;

  for (int i = 0; i < numOfReadings; i++) {

   ReadingExtNew reading = readings[i];

   sum = sum + reading.getValue();

   if (numOfReadings > 0) {

    avg = sum / numOfReadings; // to calculate average value of readings

   }

  }

  System.out.println(“avg  ” + avg);

  menu();

 }

// this method is for display all records in readings Array

 private static void displayAllReadings() {

  for (int i = 0; i < numOfReadings; i++) {

   ReadingExtNew reading = readings[i];

   System.out.println(reading);

  }

  menu();

 }

 // this method is for display all the Reading records in readings array

 private static void displayLargestReading() {

  int largestReadingIndex = 0;

  ReadingExtNew largestReading = null;

  for (int i = 0; i < numOfReadings; i++) {

   largestReading = readings[largestReadingIndex];

   if (readings[i].getValue() > largestReading.getValue()) {

    largestReadingIndex = i;

   }

  }

  largestReading = readings[largestReadingIndex];

  System.out.println(largestReading);

  menu();

 }

 private static void addMenu() {

  System.out.println(“”);

  boolean valid = false;

  int option = 0;

  Scanner in = new Scanner(System.in); // to read user entered data from console

  System.out.println(“MENU SELECTION”);

  System.out.println(“Options:”);

  System.out.println(“1. Add another reading”);

  System.out.println(“2. Menu”);

  System.out.println(“3. Quit”);

  System.out.println(“”);

  while (!valid) { // validate the user input

   try {

    System.out.println(“Enter Selection: “);

    option = in.nextInt(); // to read user entered Selection from console

    valid = true;

   } catch (Exception e) {

    System.out.println(“please enter number”);

    in.next();

   }

  }

  // Switch construct

  switch (option) {

   case 1:

    bulkAdd(); // to call addReading method

    break;

   case 2:

    menu();

    break;

   case 3:

    System.out.println(“Exit”);

    in.close();

    System.exit(0); // to exit from menu

    break;

   default:

    System.out.println(“Invalid selection”);

    menu();

    break;

  }

  System.out.println(“n n”);

 }

 // this method is for display menu and based on menu selection it will give call

 // the methods to add,display,and calculate average of all records and show the

 // Reading with highest value

 private static void menu() {

  System.out.println(“”);

  boolean valid = false;

  int option = 0;

  Scanner in = new Scanner(System.in); // to read user entered data from console

  System.out.println(“MENU SELECTION”);

  System.out.println(“Options:”);

  System.out.println(“1. Add another reading”);

  System.out.println(“2. Display all readings”);

  System.out.println(“3. Display average reading”);

  System.out.println(“4. Display largest reading”);

  System.out.println(“5. Quit”);

  System.out.println(“”);

  while (!valid) { // validate the user input

   try {

    System.out.println(“Enter Selection: “);

    option = in.nextInt(); // to read user entered Selection from console

    valid = true;

   } catch (Exception e) {

    System.out.println(“please enter number”);

    in.next();

   }

  }

  // Switch construct

  switch (option) {

   case 1:

    bulkAdd(); // to call addReading method

    break;

   case 2:

    if (numOfReadings == 0) { // to check weather array has records

    System.out.println(“No Readings Found,Please enter readings first”);

    menu();

   } else {

    displayAllReadings(); // to call displayAllReadings method

   }

   break;

   case 3:

    if (numOfReadings == 0) {

    System.out.println(“No Readings Found,Please enter readings first”);

    menu();

   } else {

    averageReading(readings, numOfReadings); // to call averageReading method

   }

   break;

   case 4:

    if (numOfReadings == 0) {

    System.out.println(“No Readings Found,Please enter readings first”);

   } else {

    displayLargestReading(); // to call displayLargestReading method

   }

   break;

   case 5:

    System.out.println(“Exit”);

    in.close();

    System.exit(0); // to exit from menu

    break;

   default:

    System.out.println(“Invalid selection”);

    menu();

    break;

  }

  System.out.println(“n n”);

 }

}

Data Type Program:

public class ReadingExtNew {

 private String annotation;

 private int readingId;

 private double value;

 public ReadingExtNew(String annotation, int readingId, double value) {

 super();

 this.annotation = annotation;

 this.readingId = readingId;

 this.value = value;

 }

 public String getAnnotation() {

 return annotation;

 }

 public void setAnnotation(String annotation) {

 this.annotation = annotation;

 }

 public int getReadingId() {

 return readingId;

 }

 public void setReadingId(int readingId) {

 this.readingId = readingId;

 }

 public double getValue() {

 return value;

 }

 public void setValue(double value) {

 this.value = value;

 }

 @Override

 public String toString() {

 String check = readingId == 0 ? ” check sensor” : readingId > 100 ? “check reading” : “”;

 return “#” + readingId + ” : ” + value + ” (” + annotation + “) ” + check;

 }

}

if you could explain the structure chart

 

"Not answered?"


Get the Answer

write my assignment 13747

In the conversion of pyruvate to lactate, NADH is required. The oxidized NAD+ is later reduced by FADH2. The reaction can be monitored by UV spectroscopy since the oxidized form FAD is an intense yellow and the reduced from FADH2 is pale yellow. The reaction is catalyzed by lactate dehydrogenase. Pyruvate + NADH -lactate dehydrogenase—-> Lactate + NAD+ 2NAD+ + FADH2 —–> 2NADH + FAD A student needed to collect data to determine the Michaelis -Menten constant for lactate dehydrogenase under physiological conditions. Ten data points should be collected. The protocol calls for the following FINAL conditions and concentations of reactants: Reaction volume 1 mL Acetate buffer – pH=6 Pyruvate 10mM –to — 100 mM FADH2 15 mM NAD+ 30 mM Enzyme – 50uM The following is available in the laboratory: Acetic acid – 6 M Sodium Acetate solid Pyruvate solid FADH2 solid NAD+ solid Lactate dehydrogenase 0.1mM distilled water Prepare a table noting the contents of each of the appropriate 10 assay tubes. (Explain how to prepare each sample) Your final concentrations must match those required. Your solutions made must be practical and cost effective. You must prepare the buffer properly. (note – your answer must be practical – i.e., you must be able to accomplish the task in the laboratory as described.)

 

"Not answered?"


Get the Answer

write my assignment 24237

Write 5 page essay on the topic Scholarship . I have included the prompt at the start of the first page. Please read the prompt to understand what they’re looking for.

Through adversity, I pursued my desire to help others, learned all that I could from each of my healthcare experiences, and made positive contributions to society through community and volunteer work.

Until the end of 1st grade, I went to a public school located in a part of Queens that was extremely diverse—most of the other children had immigrant parents. It was a great environment to grow up in. however, I went to a new public school for 2nd grade through 6th grade because my family moved to part of Queens where my neighbors turned out to be racist and unwelcoming. For the first few weeks in our new neighborhood, eggs were thrown at our house daily. The teachers at the new public elementary school did several things to prevent me from succeeding and receiving the credit I was due for my hard work and talents. According to report cards and other criteria, I was supposed to have been the valedictorian, but because that honor was normally given to a white student, I was passed over. In 6th grade, my English teacher gave me a report card grade that did not match my test and class performance. So my mother, with her limited language skills, brought it to the teacher’s attention. The teacher and principal both ignored my mother, and so my mother spoke with the district superintendant, who investigated and corrected my grade. In retaliation, however, the vice principal of the school barged into my French class one day and asked me to step out in the hallway, where he proceeded to tell me in a hostile manner that my teacher never wanted to see me again. As such, they had decided to pull me from the honors track mid-semester. Because my mother felt that I would further be harmed academically if she reported this, she decided it would be best for me to attend another public school. As a result, I had to move in with my paternal grandmother, who lived in a more diverse part of Queens, on the provision that I would provide

 

"Not answered?"


Get the Answer

write my assignment 6672

This is for International Relations Theories…..

This assignment is a take-home essay assignment of 1 question, 3 full pages, to test knowledge and assimilation of the course objectives. Use required readings and outside scholarly sources as needed. This means that you must use materials from the course lessons on this assignment, focusing on integrating as many readings as possible from lessons 1-3 in addition to reliable outside sources. This is a formal assessment; you must demonstrate that you can synthesize and analyze the material. This means quotations can only be used sparingly, if at all.  

How can theory help us to study, understand, and explain the twenty-first-century world?

Please submit your assignment as a Word doc, using Times New Roman 12-point font, standard one-inch margins, and double spacing.

 

"Not answered?"


Get the Answer