What of the following statements is true for refracting telescopes?
In: Other
Driver’s License Exam 20PTS PYTHON AND FLOWCHART The local driver’s license office has asked you to design a program that grades the written portion of the driver’s license exam. The exam has 20 multiple choice questions. Here are the correct answers: 1.B 6.A 11.B 16.C 2.D 7.B 12.C 17.C 3.A 8.A 13.D 18.B 4.A 9.C 14.A 19.D 5.C 10.D 15.D 20.A Your program should store these correct answers in an array. (Store each question’s correct answer in an element of a String array.) The program should ask the user to enter the student’s answers for each of the 20 questions, which should be stored in another array. After the student’s answers have been entered, the program should display a message indicating whether the student passed or failed the exam.(A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions.
******Need Python code
***** Need pseudocode and flowgorithm flowchart
In: Computer Science
The lengths of pregnancies in a small rural village are normally
distributed with a mean of 264 days and a standard deviation of 14
days.
In what range would you expect to find the middle 50% of most
pregnancies?
Between and .
If you were to draw samples of size 60 from this population, in
what range would you expect to find the middle 50% of most averages
for the lengths of pregnancies in the sample?
Between and .
Enter your answers as numbers. Your answers should be accurate to 1
decimal places.
In: Math
I. Given the following code segment below what is the best description of line 5 and line 6? Identify the public and private members.
1. #include <iostream.h>
2. class SimpleCat
3. {
4. public:
5. SimpleCat (int age, int weight);
6. ~SimpleCat(){}
7. int GetAge() {return itsAge;}
8. int GetWeight() {return itsWeight;}
9. private:
10. int itsAge;
11. int itsWeight;
12. };
II. Multiple Choice questions
1. A function that is called automatically each time an object is created or
instantiated is
a. constructor b. Destructor c. Copy constructor
2. A constructor may be _____________.
a. provided by you b. overloaded c. both a and b
3. A class named Gymnast must have this destructor.
a. Gymnast b. Destructor c. ~Gymnast d. *destructor
4. The return type for all constructors is this.
a. void b. int c. float d. double e. no type is allowed
5. A class named Building has a method getfloors(
). If School is a child class of Building and
AMA is an object of type School
then which of the following are valid?
a)Building.getfloors(); b)School.getfloors( ) c)AMA.getfloors();
III. What is the output ?
class A
{
int a,b,c;
public:
A( )
{
cout<<"A"<<endl;
}
~A( )
{
cout<<"B"<<endl;
}
void add( )
{
a=2, b=3;
c=a+b;
cout<<c<<endl;
}
};
void main()
{
A ab;
ab.add( );
}
In: Computer Science
Open Market Operations a) What is an open market operation by a central bank? b) What is the difference between an open market operation and a discount window operation by a central bank? c) Why does a rise in the level of government bond interest rates reduce the amount of private borrowing from commercial banks and vice-versa? d) Suppose that the economy is in a deep recession – unemployment is very high because the level of aggregate demand is very low. Should the central bank buy or sell bonds in order to reduce interest rates and increase aggregate demand? Why?
In: Economics
To analyze the resulting pattern of bright and dark fringes when laser light passes through a single slit, what fundamental principle of light propagation is used?
In: Physics
Using Ka values given in your textbook, design a buffered solution whose pH is 4.50.
a) what acid and salt will you use to make this buffer?
b) if you start with 0.20M solution of the weak acid, what inital concentration of the salt is needed?
c) how many grams of th salt would be needed to make 1.000 L of the buffer solution?
In: Chemistry
A new manufacturing plant costs $5,150,000 to build. Operating and maintenance costs are estimated to be $43,000 per year, and a salvage value of 25% of the initial cost is expected. The units the plant produces are sold for $35 each. Sales and production are designed to run 365 days per year. The planning horizon is 10 years. Find the break-even value for the number of units sold per day for each of the following values of MARR:
A/ 5%
Break-even value: units
Carry all interim calculations to 5 decimal places and
then round your final answer up to the nearest unit. The tolerance
is ±1.
B/ 10%
Break-even value: units
Carry all interim calculations to 5 decimal places and
then round your final answer up to the nearest unit. The tolerance
is ±1.
C/ 15%
Break-even value: units
Carry all interim calculations to 5 decimal places and
then round your final answer up to the nearest unit. The tolerance
is ±1.
In: Economics
USE C++: Encryption and Decryption are two cryptographic techniques. Encryption is used to transform text to meaningless characters, and decryption is used to transform meaningless characters into meaningful text. The algorithm that does the encryption is called a cipher. A simple encryption algorithm is Caesar cipher, which works as follows: replace each clear text letter with a letter chosen to be n places later in the alphabet. The number of places, n, is called the cipher key. For example, if the cipher key is 3, the clear text“HELLO THERE” becomes “KHOOR WKHUH”.Here, we restrict ourselves to encrypting/decrypting digits (0...9), lowercase, and uppercase alphabetic characters. As you know from the ASCII table, the set of these characters correspond to the integers 48to 122.Hint: The following formula can be used to encrypt a character C using the Caesar cipher algorithm: E = (C –‘0’ + k) % 75+ ‘0’ [where k is the cipher key]You need to figure out the formula for decrypting text on your own.NOTE: Use cipher key = 7.Write a C++ program for encrypting and decrypting a given string. Since this program performs two different functionalities (encryption and decryption), prompt the user to select the type of cryptographic technique as shown below: Welcome to Cryptographic Techniques ProgramPlease enter your selection:1. Encrypt2. DecryptWhen the user selects 1 or 2, s/he will be asked to specify an input and output message. Here is an example: Assume that the user enters the following message: HOW ARE YOU DOING? If the user selects to encrypt the message (i.e. option 1), the program will encrypt the original message and outputs an encrypted text. If the user selects to decrypt a message (i.e. option 2), the program will decrypt the encrypted text and outputs the decrypted text on the screen. The program should give the user the option of whether to continue with encrypting/decrypting messages (i.e. entering the letter ‘C’) or exit the program (i.e. entering the letter‘E’).
In: Computer Science
A Compartment A holds helium at pressure 5 atm, and compartment B holds argon at pressure 10atm. the partition between the gases is removed and the gases are allowed to mix. The mole fraction of helium in the mixture is 0.40 and the total volume of both compartments is 30.0 L . Temperature of helium and argon before and after mixing was 500K. Find volume of compartment A and B.
In: Chemistry
3. What is resource leveling and what might be the benefits to the project of being able to resource level?
4. List and describe the key elements of an e effective group?
In: Math
A psychology professor assigns letter grades on a test according to the following scheme. A: Top 10% of scores B: Scores below the top 10% and above the bottom 65% C: Scores below the top 35% and above the bottom 25% D: Scores below the top 75% and above the bottom 9% F: Bottom 9% of scores Scores on the test are normally distributed with a mean of 66.9 and a standard deviation of 9. Find the numerical limits for a D grade. Round your answers to the nearest whole number, if necessary.
In: Math
using a buret, add 1, 5, 10, and 15mL of standardized 0.0024 M K2CrO4 to each of four clean, dry 100-mL volumetric flasks and dilute to the 100 mL mark with 0.25 M NaNO3. Calculate the CrO4 2- concentration in each of these flasks
In: Chemistry
Researchers at the Mayo Clinic have studied the effect of sound levels on patient healing and have found a significant association (louder hospital ambient sound level is associated with slower postsurgical healing). Based on the Mayo Clinic's experience, Ardmore Hospital installed a new vinyl flooring that is supposed to reduce the mean sound level (decibels) in the hospital corridors. The sound level is measured at five randomly selected times in the main corridor. |
New Flooring | Old Flooring |
39 | 47 |
44 | 50 |
40 | 51 |
40 | 53 |
45 | 48 |
(a-1) |
Does the evidence convince you that the mean sound level has been reduced? Select the appropriate hypotheses. |
a. | H0: μ1 – μ2 ≥ 0 vs. H1: μ1 – μ2 < 0 |
b. | H0: μ1 – μ2 = 0 vs. H1: μ1 – μ2 ≠ 0 |
c. | H0: μ1 – μ2 ≤ 0 vs. H1: μ1 – μ2 > 0 |
|
(a-2) | At α = 0.05, what is the decision rule? Assume equal variances. |
a. | Reject the null hypothesis if tcalc > –1.86 (8 d.f.) |
b. | Reject the null hypothesis if tcalc < –1.86 (8 d.f.) |
|
(a-3) |
Calculate the test statistic. (Round your answer to 4 decimal places. Input the answer as a positive value.) |
Test statistic |
(a-4) | At α = .05, is the mean sound level reduced? |
(Click to select) Reject / Do not reject H0, the mean (Click to select) has been / has not been reduced.? |
(b-1) |
At α = .05, has the variance changed? Choose the correct hypothesis. |
a. | H0: σ12 / σ22 = 1vs. H1: σ12 / σ22 ≠ 1. |
b. | H0: σ12 / σ22 ≠ 1vs. H1: σ12 / σ22 = 1. |
|
(b-2) | At α = .05, what is the decision rule? |
a. | Reject H0 if Fcalc < 9.60 or Fcalc > .1042. (d.f.1 = 4, d.f.2 = 4.) |
b. | Reject H0 if Fcalc > 9.60 or Fcalc < .1042. (d.f.1 = 4, d.f.2 = 4.) |
|
(b-3) |
What is the test statistic? (Round the test statistic value to 4 decimal places.) |
Test statistic |
(b-4) | At α = .05, has the variance changed? |
(Click to select) Reject / Do not reject H0, the variance (Click to select) has / has not been changed.? |
In: Math
A racecar of mass 500 kg is going around a curve of radius 15.0 m, banked at 45∘ . The car has a coefficient of static friction with the track which is 0.200. The car also has a rear wing which produces downforce—“negative lift” due to airflow over the wing, which pushes the car into the track. The downforce is given by ? = ?v2 , where ? = 10 kg/m. Find the minimum and maximum speeds between which the car can take the curve without skidding.
In: Physics