Questions
Fill in the blanks in the table below: Monomer Polymer Name examples of some polymers of...

  1. Fill in the blanks in the table below:

Monomer

Polymer

Name examples of some polymers of this type

Nucleic acid

RNA

___________

      Amino acids

Enzymes

_____________

Starch

Cellulose

  1. Highlight the correct answer for each pair: Which is bigger, a monomer or a polymer? an amino acid or a protein? a monosaccharide or a polysaccharide? a nucleotide or DNA?
  2. Fill in the blanks: Condensation reactions ______________ (make or break?) polymers by __________ (adding or removing?) water.
  3. Name an example of a polysaccharide. What is the name of the monomer that comprises this polysaccharide?
  4. What is the function of the polysaccharide you named in #4? Where is it found (animals or plants)?

In: Biology

Write a java program that will read a file called stateinfo.txt and will store the information...

Write a java program that will read a file called stateinfo.txt and will store the information of the file into a map. The stateinfo.txt file contains the names of some states and their capitals. The format of stateinfo.txt file is as follows.

State                Capital

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

NSW               Sydney

VIC                 Melbourne

WA                 Perth

TAS                 Tasmania

QLD                Brisbane

SA                   Adelaide

The program then prompts the user to enter the name of a state. Upon receiving the user input, the program should display the name of the capital for that particular state. Assume that the name of the state that a user may enter already exists in the stateinfo.txt file.

In: Computer Science

Create an application using PyQt. The user must be prompted for the name of a country...

Create an application using PyQt. The user must be prompted for the name of a country
(e.g. Spain) and a single character (e.g ‘a’). The application must read the name of the
country and count the number of occurrences of the character in the country name. The
count should be case-insensitive. Thus, if ‘c’ is entered as the character then both capital
letter ‘C’ and small letter ‘c’ in the string should be counted. The count must be displayed.
The application interface must include at least a label, an edit and a button. You are
welcome to enhance your application with comments and messages.

In: Computer Science

Starting with the nucleus, name 4 parts of the endomembrane system and explain how they work...

  1. Starting with the nucleus, name 4 parts of the endomembrane system and explain how they work together to produce a mature polypeptide.
  2. Name and explain the 3 different ways proteins can be sorted.
  3. Name and explain 3 functions of the plasma membrane.
  4. Define the 3 different types of passive transport and be sure to tell me what direction molecules move in each (down or against the concentration gradient?)
  1. Explain the two main distinguishing differences between passive transport and active transport (be specific about which process does what)?

In: Biology

The local taqueria wants you to write a program which tracks the number of burritos they...

The local taqueria wants you to write a program which tracks the number of burritos they sell each day and help them analyze their business.

Your C++ program should ask the user for the number of different burrito types sold, then get the names of the types and the number of burritos sold of each type of that day. Print out a daily report listing sales for each burrito type and total number of all burritos sold.

So far, this sounds very similar to a previous exercise! This difference this time is that you must use a struct called SalesRecord which has two fields -- a string containing the name of the burrito, and an int containing the number of burritos sold of this type. You must have one dynamically allocated array of SalesRecord structs.  

SAMPLE OUTPUT:

Enter the number of different types sold: 4

Enter the name of the burrito 1: chicken
Enter the number of burritos sold of this type: 4

Enter the name of the burrito 2: pork
Enter the number of burritos sold of this type: 3

Enter the name of the burrito 3: shrimp
Enter the number of burritos sold of this type: 7

Enter the name of the burrito 4: california
Enter the number of burritos sold of this type: 9

Burrito Name Burrito Count
------------------------------------------
chicken 4
pork 3
shrimp 7
california 9
The total number of burritos sold for 4 types: 23

In: Computer Science

Write the class MultiDimList according to the following requirements: 1. Each node contains 3 fields of...

Write the class MultiDimList according to the following requirements:

1. Each node contains 3 fields of data (Name, ID, Mark out of 100).
2. Each node will have two pointer: nextMark, nextName
3. The nodes can be sorted in an ascending way based on the Mark or the Name

The List will have the following:

FirstMark : a Pointer to point to the first node based on the Mark sorting scheme
FirstName: a Pointer to point to the first node based on the Name (alphabetical) scheme

Implement and test the following methods:

1. Add (input is a node).
2. Remove (using Name an input)
3. Display (displays the list in order by Name, Mark based on the user’s input)
4. countGrade (the input is the Grade (A,B,C or D) returns a count of the number of students who received the passedgrade. Use the following criteria: A (>= 90), B (80-89), C (70-80) or D (below 70))
5. printBelowAverage (displays a list of students who received below average mark).
6. replaceMark (input is ID and mark).

Input File:

Number of students

Name, ID, Mark separated by space

Testing:

1. Write a driver method that tests all the methods you wrote.
2. You could include a menu that gives the options for users to choose from.

Marking Scheme:

5 Marks/method.

5 Marks for the main method.

5 Marks creativity.

Total out of 40.

In: Advanced Math

Write a program called whilebun.py, in which the user is asked to guess the name of...

Write a program called whilebun.py, in which the user is asked to guess the name of your favorite DBVac vacuum cleaner model. Your program should:

· Include a comment in the first line with your name.

· Include comments describing each major section of code.

· Set a variable called vacname to be equal to the name of your favorite DBVac vacuum cleaner model.

· Ask the user to guess the name. Allow the user to make up to three guesses, evaluating each guess for correctness immediately after the guess is made.

o The user’s guess shouldn’t be required to be case sensitive to be correct. For instance, if your favorite model is the Hare Razer, but the user inputs “HARE RAZER”, then that should be counted correct (as should “hare razer”, “hArE rAzEr” and any other combination of capital and lower-case letters).

o If the user guesses wrong, let them know, tell them how many guesses they have left, and have them guess again (up to three guesses total).

· If the user guesses the correct name:

o Stop asking the user to guess (even if they have not yet guessed three times).

o Congratulate the user on their guessing skills.

o Tell the user how many guesses it took them to guess correctly.

· If the user runs out of guesses without guessing the correct name:

o Console the user by telling them that, while they have failed in this task, it’s going to be okay.

In: Computer Science

Debug the pet.h file and pet.cpp file (I would like to check my work) #ifnotdef PET_H...

Debug the pet.h file and pet.cpp file (I would like to check my work)

#ifnotdef PET_H

#then_define PET_H

#include <string>

using name space std

namespace fhsuzeng

{

Class Pet

{

public

Pet();

void setName(string name);

string getName() const;

void setAge(double age);

int getAge() const;

virtual void talk();

private:

string _name; int _age;

};

class Dog::public Pet

{

public:

Dog();

void setBreed(string breed);

string getBreed() const;

private: string _breed;

}

class Cat:Pet

{

Public:

Cat();

void setColor(string color);

string getColor() const;

private:

string _color;

};

}; #endif

The above is pet.h file and the following is the file pet.cpp

#include <string>

#include <pet.h>

using name space std

namespace fhsuzeng

{

void Pet::Pet():: _name("no name yet"), _age(0){}

int Pet::getAge() const { return age; }

void Pet::setAge(int age) { age = age; }

string Pet::getName() const { return _name }

void Pet::setName(string name) { _name = name; }

Pet::Dog(): Pet(), _breed("Any breed") {}

string Dog::getBreed() { return _breed; }

void Dog::setBreed(string breed) { _breed = breed; }

Cat::Cat(): Pet(), _color("Red")

Cat::string getColor() const { return _color; }

void Cat:: setColor(string color) { _color = color; } }

In: Computer Science

Draw a relational model for the following case study. Case Study The local under-sixteen football league...

Draw a relational model for the following case study.
Case Study
The local under-sixteen football league needs a database to help track teams, children
that sign up to play in the league, the parents of these children and the coaches for each
team.
The league wishes to record the details for each parent of a particular player (the parents
last name, first name, phone contact number and address). For each player, the system
needs to record the player's last name, first name, blood type and their date of birth. Any
allergies that the player has also need to be recorded.
A player may only play in one team with this league. Each team is given a unique id, the
system needs to record this id, the teams name, and the city their home ground is located
(a city may have several under-sixteen teams based in it). A team’s colours are also to be
recorded, teams may choose to use a single or multiple team colours. A team may have
several coaches – one of the coaches is designated as the head coach.
A coach is only permitted to coach one team in the under-sixteen leagues. All
communications from the league to the team are via the head coach. To be registered to
play in this league a team must have a head coach and at least one player. The database
needs to track a coach's first and last name, phone and address contact details and the
team that they are coaching.

In: Computer Science

HW_6d - Write a struct object to a binary file. Create a new C++ project and...

HW_6d - Write a struct object to a binary file.

  1. Create a new C++ project and name it as:   Cats

  1. Create a Source.cpp file.

  1. Declare a struct named Cat. (in the Source.cpp file, or in a separate header file)

  1. Each Cat object has a name and age.
  • The name data member is a c_string.
  • The age data member is an integer.

  1. Ask the user to enter 3 cats.

  1. Use a while loop to read the information about one cat entered by the user, and write it to a

          binary file named: critters.bin

  • Only one Cat object needs to be declared, because the same object can be used for

     each cat.

  • Use the write() function to write the data to a binary file.
  • The while loop should only execute 3 iterations.

  1. Once the file has been written, the following message should be displayed:

      Record written to file.      (see output)

  1. Turn in a screen print of the binary file, as shown below, along with your code and output.

/* OUTPUT

Enter 3 cat records.

Enter information about a cat:

NAME: Tom

AGE: 5

Enter information about a cat:

NAME: Fluffy

AGE: 3

Enter information about a cat:

NAME: Sweet Pea

AGE: 2

Record written to file.

Press any key to continue . . . */

Please make the code based on C++, and make a description for each code.

In: Computer Science