1. Would Santa Clarita (latitude 34oN) ever receive direct, vertically overhead rays of the sun? Why or why not?
2. Why does the Equator get 12 hours of day and 12 hours of night, every day of the year, and all other latitudes do not?
3. On the June solstice, why does the area between the Arctic Circle (66.5oN) and North Pole (90oN) have 24-hour daytime, whereas the area between the Antarctic Circle (66.5oS) and South Pole (90oS) gets 24-hour nighttime?
4. Would Istanbul, Turkey (41oN) ever get 12 hours of night in July? Give at least 2 accurate reasons for your answer.
5. Define aphelion and perihelion What are their dates? Why don’t they have any effect on our seasons?
In: Other
You are a construction manager for You can Do It Construction, and have been given an 135,000 square foot, 6-story, medical office and laboratory building project in Santa Fe to manage. The project is located at the southeast quadrant of US 599 and Airport Rd, which is just NW of I-40. The building itself is in the EAST corner of the parcel.
The plans call for a structural steel framework with exterior walls of imported Italian marble. The plans, which were done by a firm in North Dakota, also call for two stories of underground parking constructed with precast concrete components trucked in from Amarillo, Tx.
Write 3 paragraphs on what you’d consider when laying out the jobsite and who you might consult with. Be thorough and concise.
In: Civil Engineering
Required information
[The following information applies to the questions
displayed below.]
In 2018, the Westgate Construction Company entered into a contract
to construct a road for Santa Clara County for $10,000,000. The
road was completed in 2020. Information related to the contract is
as follows:
| 2018 | 2019 | 2020 | |||||||
| Cost incurred during the year | $ | 2,204,000 | $ | 3,192,000 | $ | 2,424,400 | |||
| Estimated costs to complete as of year-end | 5,396,000 | 2,204,000 | 0 | ||||||
| Billings during the year | 2,140,000 | 3,256,000 | 4,604,000 | ||||||
| Cash collections during the year | 1,870,000 | 3,200,000 | 4,930,000 | ||||||
Westgate recognizes revenue over time according to percentage of
completion.
Required:
1. Calculate the amount of revenue and gross profit (loss) to be recognized in each of the three years. (Do not round intermediate calculations. Loss amounts should be indicated with a minus sign.)
In: Accounting
A statistics student at a small liberal arts college who is curious about the relationship between the amount of time students at his college spend on social networking sites and their performance at school decides to conduct a survey. Four research strategies for collecting data are described below. In each, name the sampling method proposed and any bias you might expect. Strategy 1: He obtains a list of the 1500 students at the college. He chooses a random number k k between 1 and 15 and then samples that person and every k k th person on the list. He emails the survey to each of the people in the sample and asks them to complete it by next Friday. 1. What is the sampling method? A. Cluster sampling B. Simple random sampling C. Convenience sampling D. Systematic sampling E. Stratified sampling 2. What type of bias would you expect? (check all that apply) A. Selection bias B. Nonresponse bias C. No bias in this survey D. Response bias Strategy 2: He gives out the survey only to his friends, and makes sure each one of them fills out the survey. 3. What is the sampling method? A. Simple random sampling B. Convenience sampling C. Systematic sampling D. Stratified sampling E. Cluster sampling 4. What type of bias would you expect? (check all that apply) A. Nonresponse bias B. Response bias C. No bias in this survey D. Selection bias Strategy 3: He randomly chooses 3 floors of the largest dorm on campus and distributes a paper survey to each resident on those floors. He places a box in the common room of the dorm to collect the completed surveys. 5. What is the sampling method? A. Stratified sampling B. Cluster sampling C. Systematic sampling D. Simple random sampling E. Convenience sampling 6. What type of bias would you expect? (check all that apply) A. Selection bias B. No bias in this survey C. Nonresponse bias D. Response bias 7. Which strategy will give him the most representative sample of students at his college? A. Strategy 1 B. Strategy 2 C. Strategy 3
In: Statistics and Probability
A college records the module registration information of their students in a database named College.mdb,which contains three tables,STUDENT,MODULE andMODULE_REG. A student may enroll in the same module as many times as they like. However, they can only enroll each module at most once in each semester. The design of the three tables are shown below:
Table STUDENT
|
Field Name |
Data Type |
Note |
|
SID |
Short Text |
primary key |
|
FirstName |
Short Text |
|
|
LastName |
Short Text |
|
|
Contact |
Short Text |
|
|
Gender |
Short Text |
“M” or “F” |
Table MODULE_REG
|
Field Name |
Data Type |
Note |
|
StudentID |
Short Text |
|
|
ModuleCode |
Short Text |
|
|
Year |
Number |
|
|
Semester |
Number |
|
|
Score |
Number |
Table MODULE
|
Field Name |
Data Type |
Note |
|
ModuleCode |
Short Text |
primary key |
|
ModuleName |
Short Text |
Download the database file College.mdbfrom Moodle. Rename it as College_Lxx_syyyyyy.mdb(where Lxxis your class andsyyyyyyis your student number, e.g. College_L01_s170001.mdb/College_L01_s170001.accdb) and complete the following tasks.
(a) Create a primary key of the table MODULE_REG. (1 mark)
(b) Establish the relationships between the tables STUDENT,MODULE andMODULE_REG. (1 mark)
(c) Create queries to perform the following tasks:
(ii) Display the total number of students in each gender. Save the query as Q2.
Produce a list of module codes, module names, student names
(including both first name and last name), and student IDs of
enrolled students for all modules with module codes beginning with
“COM” being registered in the firstsemester of
2019. Arrange the records in
ascendingorder of module codes. Save the query as
Q4.
Note: You mustnotshow the
semester and the year in the output.
In: Computer Science
he weights of randomly selected 5 female students and 5 male students are given by the following:weights for male students:160,165,152,158,178weights for female students:169,154,158,156,162.
Let the weight distributions of male and female students follow N(μ1,σ1) and N(μ2,σ2)respectively.
Find the correlation coefficient between the heights of male and female students.(5 points)
In: Statistics and Probability
A linear transformation from R3-R4 with the V set of vectors x, where T(x)=0, is V a subspace of R3?
In: Advanced Math
Astronomy question.
Which star is coolest?
a. M8 V
b. K1 I
c. A7 III
d. B3 V
In: Physics
Prove or disprove: Between any n-dimensional vector space V and Rn there is exactly one isomorphism T : V → Rn .
In: Advanced Math
Well our Data Structures and Algorithms professor had the incorrect date set for this assignment (was November 7, 2019 and now is October 7, 2019) so I was putting it off until the end of this month, now I have two days to complete it which is going to be near impossible with the assignments I have for C Programming, Calculus II and Anthropology also all due on Monday, so I need some help. I have the general outline for this program from the last assignment we did but I am unsure how to implement the new methods we were shown Thursday.
I. General Description
In this assignment, you will create a Java program to read undergraduate and graduate students from an input file, shuffle them, and write them to an output file.
1. The input file name and the output file name are passed in as the first and second arguments at command line, respectively. For example, assume your package name is FuAssignment4 and your main class name is FuMain, and your executable files are in “C:\Users\2734848\eclipse-workspace\CIS 265 Assignments\bin”. The following command line will read from a local file “students.txt” and write to a local file “students_shuffled.txt”: C:\Users\2734848\eclipse-workspace\CIS 265 Assignments\bin > java FuAssignment4.FuMain students.txt students_shuffled.txt
2. If the program is run with incorrect number of arguments, your program must print an error message and exit. The error message must show correct format to run your program, e.g., “Usage: FuAssignment4.FuMain input_file output_file” where FuAssignment4 is the package and FuMain is the main class.
3. Each line in the input file represents a student. There are 5 fields in each line: name, id, gpa, “graduate” or “undergraduate”, isTransfer (for undergraduate) or college (for graduate). The fields are separated by comma, “,”. For example, the input file students.txt file may contain: Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true Abby Wasch,294830,3.6,graduate,West Virginia
4. The program will read the lines and create undergraduate students or graduate students accordingly. The students are added to an ArrayList.
5. The program then shuffles the ArrayList, and write the shuffled list of students to the output file.
6. Given the previous input file students.txt, a possible output file, students_shuffled.txt, maybe like this: Abby Wasch,294830,3.6,graduate,West Virginia Michelle Chang,200224,3.3,graduate,Cleveland State University David Jones,265334,2.7,undergraduate,true Tayer Smoke,249843,2.4,undergraduate,false
II. Implementation Requirements
The program must implement a main class and three student classes (Student, UndergradStudent, GradStudent).
• You may reuse the code from previous assignments. You may use my code posted on Blackboard for previous assignments.
• However, the Student class must be declared as an abstract class now. It must also have an overloaded printStudent(PrintWriter output) method. The method will write student’s information to the file using the output PrintWriter.
• Accordingly, the UnderGradStudent and GradStudent classes must also have an overloaded printStudent(PrintWriter output) method. They must use the superclass’ method to write student’s information. The UnderGradStudent’s printStudent(PrintWriter output) writes “undergraduate” and 2 isTransfer after that. The GradStudent’s printStudent(PrintWriter output) writes “graduate” and college after that. • The UML class diagram should be as follows:
| Student | ||
| -name: String | ||
| -id: int | ||
| -gpa: float | ||
| +Student() | ||
| +Student(name,id,gpa) | ||
| +printStudent():void | ||
| +printStudent(PrintWriter output:void | ||
| UndergradStudent | GradStudent | |
| -boolean: isTransfer | -college:String | |
|
+UndergradStudent(name,id,gpa,isTransfer) |
+GradStudent(name,id,gpa,college) | |
|
+printStudent():void +printStudent(PrintWriter output):void |
+printStudent():void +printStudent(PrintWriter output):void |
• All classes must be in the same package. The package name must start with your last name. For example, if your last name is “Trump”, your package name must start with “Trump” such as “TrumpCIS265AS3”, “TrumpAS3”, etc.
• You main class file name must start with your last name. For example, if your last name is “Spiderman”, your main class file name must start with “Spiderman” such as “Spiderman3.java”, “SpidermanAssign3.java”, etc.
• Since I/O exceptions are checked exceptions, your program must handle exceptions. You may use the try/catch or throw IOException. To throw exceptions, you declare it as: public static void main(String[] args) throws IOException {
• You must create an ArrayList of Students in the main class: import java.util.ArrayList; ArrayList students = new ArrayList<>();
• The ArrayList variable will store all Student objects created, both undergraduate students and graduate students.
• The Student class must have a constructor that takes a name, an id, and a gpa, to create a Student object.
• The UndergradStudent class must have a constructor that takes a name, an id, a gpa, and a transfer status to create an UndergradStudent object. The constructor must call the Student’s constructor using super.
• The GradStudent class should must a constructor that takes a name, an id, a gpa, and a college to create an GradStudent object. The constructor must call the Student’s constructor using super.
• The Student class must have a public method printStudent(PrintWriter output) that writes the student’s name, id, and gpa to the PrintWriter output.
• The UndergradStudent class must override the printStudent(PrintWriter output) method. It must write the student’s name, id, gpa, and transfer status to the PrintWriter output. It should call the Student’s printStudent(PrintWriter output) to write student’s name, id, and gpa.
• The gradStudent class must override the printStudent(PrintWriter output) method. It must write the student’s name, id, gpa, and college to the PrintWriter output. It should call the Student’s printStudent(PrintWriter output) to write student’s name, id, and gpa.
• To shuffle the ArrayList, you need to use the Collections’s shuffle method: import java.util.Collections; Collections.shuffle(students); //assume students is an ArrayList of Students
• The printing of students should use dynamic binding: for (Student s: students) //students is an ArrayList of Students s.printStudent(output); // output is a PrintWriter for output file
• Your program must close both input and output files after they are done.
• You can assume that input file has the correct format. You will earn bonus points for handling incorrect input formats.
V. Bonus features (optional)
If a line in the input file has incorrect format, your program should skip the line and continue. The following are possible formatting errors your program can handle:
1. (2 points) if the line does not have 5 fields;
2. (2 points) if the id is not an integer;
3. (2 points) if the gpa is not a float;
4. (2 points) if the 4th field is not “undergraduate” or “graduate”;
5. (2 points) if the 5th field for an undergraduate student is not true or false.
In: Computer Science