Questions
Q1) Create a program that do the following: 1. Asks the user to enter n marks...

Q1) Create a program that do the following:

1. Asks the user to enter n marks for n students, read the marks and the names and store them in a double linked list.

2. Write a method to find the largest mark and print the name of the student having that mark

3. Write a method to print the content of the list (name, mark)

4. Write a method to search the list for a given mark and prints the result

6. Insert 2 new students to the list (print the list before and after the insertion)

7. Delete any students with the first letter "D" in his name, (print the list before and after the deletion)

Submit .java files only.

In: Computer Science

Create an application that allows you to enter student data than consists of an ID number,...

Create an application that allows you to enter student data than consists of an ID number, first name, last name, and grade point average. If the student's GPA is less than 2.0, write the record to an academic probation file, otherwise, write the record to a good standing file Once the student records are complete, read in the good standing file. If the GPA is greater than or equal to 3.5, display the students name for the Dean's List Be sure to include any exceptions needed for the program to run smoothly. Save the file as StudentsStanding.java I've figured out the first part in writing the files, but having trouble with reading in the files to make the Dean's List.

In: Computer Science

The following diagram shows a distillation process. Distillation is a technique used in chemistry to purify water from dissolved impurities, mainly salts.



The following diagram shows a distillation process. Distillation is a technique used in chemistry to purify water from dissolved impurities, mainly salts. An example is the conversion of sea water to fresh water as is done in many countries including Oman. Temperature plays an important role in distillation process and the various steps involved are as follows. 

Step1: Heating impure water to produce steam in the distillation flask. 

Step2: Steam passes through to the Liebig condenser where it is condensed. 

Step3: Condensed water is collected in the receiving flask as pure water also called distilled water. 

image.png

a) Name the process that is taking place in step1 where water changes to steam. 

b) Name the process that is taking place in step2 where steam changes to water again. 

c) Name whether step1 is exothermic or endothermic? Justify your answer. 

d) Name whether step2 is exothermic or endothermic? Justify your answer. The end-product of distillation is an element, compound or mixture? Justify your answer.

In: Chemistry

General biology 1 lab report Kingdoms Bacteria, Protista, and Fungi Please make sure to give more...

General biology 1 lab report Kingdoms Bacteria, Protista, and Fungi

Please make sure to give more details cause this lab really important cause I can't separate those questions cause each one of these is connected to each other so please try to answer all those questions  

Fungus Presentations Phylum Chytridiomycota

  1. Where are they found?

  2. What is the name of the reproductive structure?

Drawing of the reproductive structure:

  1. How do they get their food?

  2. Some common examples of these fungi are:

Phylum Zygomycota

  1. Where are they found?

  2. What is the name of the reproductive structure?

Drawing of the reproductive structure:

  1. How do they get their food?

  2. Some common examples of these fungi are:

Phylum Ascomycota

  1. Where are they found?

  2. What is the name for the reproductive structure?

Drawing of the reproductive structure:

  1. How do they get their food?

  2. Some common examples of these fungi are:

Phylum Basidiomycota

  1. Where are they found?

  2. What is the name for the reproductive structure?

Drawing of the reproductive structure:

  1. How do they get their food?

  2. Some common examples of these fungi are:

In: Biology

JAVA: This is my code, but when it runs, for the "Average Score" output, it only...

JAVA: This is my code, but when it runs, for the "Average Score" output, it only gives me NaN. How can I fix that?

import java.util.Scanner;

public class prog4 {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);

String name;
double score;
double minScore = 0;
double maxScore = 0;
int numberOfRecords = 0;
double sum = 0;
double average = sum / numberOfRecords;

System.out.printf("%-15s %-15s %-15s\n", "Student#", "Name", "Score");
  
       while (reader.hasNext()) {
name = reader.next();
score = reader.nextDouble();
sum += score;
System.out.printf("%8d%12s %16.2f\n", numberOfRecords + 1, name, score);
if (numberOfRecords == 0) {
minScore = score;
} else if (minScore > score) {
minScore = score;
}
if (maxScore < score) {
maxScore = score;
}
numberOfRecords += 1;
}

System.out.println("Number of Records: " + numberOfRecords);
System.out.printf("Max Score: %.2f\n", maxScore);
System.out.printf("Min Score: %.2f\n", minScore);
System.out.printf("Average Scores: %.2f\n", average);

}

}

In: Computer Science

Prompt the user for their name, get and store the user input. Prompt the user for...

Prompt the user for their name, get and store the user input.

Prompt the user for their age, get and store the user input. We will assume that the user will enter a positive integer and will do no error checking for valid input.

Determine and store a movie ticket price based on the user's age. If their age is 12 or under, the ticket price is $5. If their age is between 13 and 64, inclusive, the ticket price is $10. If their age is 65 or greater, the ticket price is $8.

When all the user input has been gathered, print out a meaningful label such as 'Name: ' followed by the entire user name on one line. On the next line, print out a meaningful label such as 'Age: ' followed by the user's age. On the next line, print out a meaningful label such as 'Ticket Price: ' followed by the ticket price your program calculated. Your output should look something like this:

Name: Mickey M Mouse

Age: 19

Ticket Price: $10

Python 3

In: Computer Science

pseudo-code, please If a word has a tag O, it means that the word has nothing...

pseudo-code, please

If a word has a tag O, it means that the word has nothing to do with the named entity (it is not a part of a named entity such as a location, person name, organization, and etc.)

If a word has a tag starting with B, it means that the word is the beginning of a named entity. For instance, the tag B-per means that the associated word is the beginning of a person's name. On the other hand, if a word has a tag starting with I, it means the word is inside a named entity. Hence, the tag I-per means that the associated word is inside a person's name.

Thousands O

of O

demonstrators O

have O

marched O

through O

London B-geo

Take the following lines in the file for example.

President B-per

Mahmoud I-per

Ahmadinejad I-per

said O

We know the words “President, Mahmoud, and Ahmadinejad” cover a named entity of the type person name.

Could you write pseudo code to pull the names out of a file that are stated in the example

In: Computer Science

Create a new Python 3 Jupyter Notebook. At the top, be sure to name your notebook...

Create a new Python 3 Jupyter Notebook.

At the top, be sure to name your notebook as "*assignment 2.08 - Your Name Here.ipynb*" (obviously, replace the "Your Name Here" part with your actual name).

Create a single python cell to program the following specifications.

Use what you've learned on this page to:
1. Find the index of "lmno" in the English alphabet using an appropriate instruction and store it in a variable. (hint: you'll need to define a string that contains the letters of the alphabet in their proper order)
1. Find the length of "lmno" using an appropriate instruction and store it in a different variable.
1. Use those two variables to determine the index for the end of "lmno" within the alphabet and store that in a third variable. (hint: use math)
1. Use the two variables that are defined as indexes to get the corresponding slice of the alphabet and print it out using a format string.

You may use any other variables you determine are necessary or helpful. Also, be sure to use comments as needed to explain what is taking place.

In: Computer Science

Task 2.5: Write a script that will ask the user for to input a file name...

Task 2.5: Write a script that will ask the user for to input a file name and then create the file and echo to the screen that the file name inputted had been created

1. Open a new file script creafile.sh using vi editor

# vi creafile.sh

2. Type the following lines

#!/bin/bash

echo ‘enter a file name: ‘

read FILENAME

touch $FILENAME

echo “$FILENAME has been created”

3. Add the execute permission

4. Run the script #./creafile.sh

5. Enter the file name you want to create

6. Check whether file is created

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

Task 3.4 Challenge Exercises

a.Write Script to see current date, time, username, and current directory.

b.Take the script from Task 2.5 and write it so it does not create a file if no input is received.

c. In this exercise, you will create a script based on case statement.

d. Write a Shell using for loop to print three strings.

e. Write a bash Script to reverse a given positive integer.

In: Computer Science

Writing Classes I Write a Java program containing two classes: Dog and a driver class Kennel....


Writing Classes I
Write a Java program containing two classes: Dog and a driver class Kennel.


A dog consists of the following information:
• An integer age.
• A string name. If the given name contains non-alphabetic characters, initialize to Wolfy.
• A string bark representing the vocalization the dog makes when they ‘speak’.
• A boolean representing hair length; true indicates short hair.
• A float weight representing the dog’s weight (in pounds).
• An enumeration representing the type of tail (LONG, SHORT, NONE).


A dog consists of the following methods.
• A default constructor.
• A constructor that takes a name as argument.
• A method private boolean validName(String) that returns true / false whether the given name contains non-alphabetic characters.
• humanAge that computes and returns the age of the dog in “human years.”
• speak returns the dog’s bark.


Each constructor should initialize all attributes to reasonable initial values.


The main method in the Kennel class should create several dogs with each constructor and output
their instance data using toString.

In: Computer Science