Questions
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

Linux Question: Describe how you created above file and its contents in VI. a) Bash/VI commands:...

Linux Question: Describe how you created above file and its contents in VI.

a) Bash/VI commands: 20pts;

b) Non-brute-force solution: 10pts).

Note: Brute-force solution means that entering characters one by one

Install JDK 1.8 by the following command: $ sudo dnf –y install java-1.8.0-openjdk-devel.x86_64

Use VI to create a file “YourFirstNameHomework.java” (e.g., “MollyHomework.java”) and add the following contents into it.

(grading details: file name format:10 pts, a screenshot of the file content in the VI environment: 10pts, paragraphs: 10pts, empty lines and indentations: 10, text: 10pts)

import java.util.Scanner; // Import the Scanner class

class CynthiaHomework {

public static void main(String[] args) {

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

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

String fName = myObj.nextLine(); // Read user input of the first name

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

String lName = myObj.nextLine(); // Read user input of the last name

System.out.println("Hello " + fName + “ “ + lName); // Output user input

}

}

To compile the above java code, run the following command (you need to use your java file name): $ javac MollyHomework.java

To execute the java program, run the following command $ java MollyHomework

In: Computer Science

Write a java program using the following instructions: Write a program that determines election results. Create...

Write a java program using the following instructions:

Write a program that determines election results. Create two parallel arrays to store the last names of five candidates in a local election and the votes received by each candidate. Prompt the user to input these values. The program should output each candidates name, the votes received by that candidate, the percentage of the total votes received by the candidate, and the total votes cast. Your program should also output the winner of the election. To do this, write the following method: findHighest which receives an array of int. It determine the highest value in the array and returns the location of that value. Call this method to determine the location of the highest value in your votes array, and use this to display the winner from the names array.

SAMPLE OUTPUT:

Enter candidate name: Johnson

Enter votes received: 5000

Enter candidate name: Miller

Enter votes received: 4000

Enter candidate name: Duffy

Enter votes received: 6000

Enter candidate name: Robinson

Enter votes received: 2500

Enter candidate name: Ashton

Enter votes received: 1800

Candidate           Votes Received % of Total

Johnson 5000 25.91

Miller 4000 20.72

Duffy 6000 31.09

Robinson 2500 12.95

Ashton 1800 9.33

Total votes: 19300

The winner of the election is Duffy.

In: Computer Science

Copy d_state.h to your working directory and finish its implementation. Write a program: it first declares...

  1. Copy d_state.h to your working directory and finish its implementation.
  2. Write a program:
    • it first declares a set object s having 5 elements of type stateCity with its initial values such as ("Virginia", "Richmond");
    • then perform the search: input the name of a state, and use the find() function to determine where the state in the set. If the object is present, used the << operator to output the sate and the city; if it is not present, output a message to that effect.
    • Then, rather than using objects of type stateCity, you will implement the program by using a map with state name (string) as the key and the city name (string) as the data value.

d_state.h:

#ifndef STATECITY_CLASS
#define STATECITY_CLASS

#include 
#include 

using namespace std;

// object stores the state name and city in the state
class stateCity
{
        public:
                stateCity (const string& name = "", const string& city = "");

                // output the state and city name in the format
                //    cityName, stateName
                friend ostream& operator<< (ostream& ostr, const stateCity& state;
                
                // operators < and == must be defined to use with set object.
                // operators use only the stateName as the key
                friend bool operator< (const stateCity& a, const stateCity& b);
                
                friend bool operator== (const stateCity& a, const stateCity& b);
        
        private:
                string stateName, cityName;
};

#endif  // STATECITY_CLASS

Please write in C++



Sample Output:

Run 1:

Enter a state: Arizona
Phoenix, Arizona

Run 2:

Enter a state: New York
New York is not in the set

In: Computer Science