CS 0445 Summer 2023 Assignment 1
Assignment solution
Data Structure is an implementation of A. class B. Algorithm C. Abstract data type D. structure
Assignment
solution
Mechanism 2 – Independent Analysis
The structure shown in Figure 3 is part of a transfer bridge used by cars to drive onto a ferry. Due to the varying tidal heights, the bridge (member AC) may be in any position from ΞΈmin = 0° to ΞΈmax = 25°. The mass of member AC, mb, is equal to the last 4 digits of your A#, in kg, and acts at the center of mass, midspan of the structure. Member BC is a hydraulic cylinder which varies in length depending on the bridge position, and may be assumed to have a negligible mass.
Analysis:
Visualize the mechanism at ππππ = 0°, ππππ₯ = 25°, and an intermediate position ΞΈ. 2. Disassemble the mechanism and draw a free body diagram for member AC in the intermediate position. Hydraulic cylinder BC is a 2-force member. 3. Produce geometric and equilibrium relationships to relate the force in cylinder BC and the resultant pin force at A (π π΄) to the angle of the bridge, π. The analysis will be similar to that performed in the previous section of this lab. 4. Input these relationships into a spreadsheet. 5. Verify the accuracy of your spreadsheet by analysing the bridge by hand at angle π = 15. 6. Produce a plot showing the full range of angle π on the x-axis and cylinder force πΉπ΅πΆ/π π΄ on the y-axis.
Mechanism 1 – Guided Analysis
1. FBD of mechanism in the intermediate position
2. List of geometric and equilbrium formulas used for the analysis
3. Screenshot of your spreadsheet
4. Plots of a. π vs. πΉπ·πΈ b. π vs. π π and π π
Mechanism 2 – Independent Analysis
1. FBD of mechanism in the intermediate position
2. Derivation and list of the geometric and equilibrium equations used for the analysis. SHOW YOUR CALCULATIONS!! They do not have to be typed up, but they should be neat.
3. Screenshot of your spreadsheet
4. Hand calculation of member BC and pin forces at A for the bridge at an angle π = 15°. 5. Plot of π vs. πΉπ΅πΆ and π π΄
Include a title page with the lab title, your name, A#, and the date. The report should not be formal, but it should be complete. Presentation will count for 20% of the value of this lab, so ensure your report is professional looking, neat and organized. Your digital submission must be a single PDF document.
EGNE1203 Statics Lab 1: Analysis of a Ventilation Door Mechanism
Uttarakhand Open University BA 3rd year Assignment
Course Code: ACS-1
Maximum Marks: 30
1. Put () against the correct statement and (×) against the incorrect statement. (1×3= 3 Marks)
i) Pleasant sales persons can persuade a consumer to try a new product. ( )
ii) An arbitrator brings about a settlement between a consumer and a seller.
( ) iii) It is not necessary for consumer organizations working for the Indian
consumer to become a member of the international organization. ( )
2. Fill in the Blanks. (1×3= 3 Marks)
i) ……………………. is a person who buys goods and services and makes use of public utilities as well as natural resources like air and water.
ii) ………………………. deals with the relation between organisms and their environment. It now includes human kind’s dependence and relationship with environment.
iii) …………………………. means any article of food, being a produce of agriculture or horticulture in its natural form.
3. Write Answer inone line. (2 ×2= 4 Marks)
i) Family Life Cycle
ii) Poverty Line
4. Short Answer Type Questions. (5 ×2= 10 Marks)
i) Briefly describe the growth of consumer movement.
ii) Describe the characteristics of mass media.
5. Essay Type Question. (10 ×1= 10 Marks)
i) Define consumer. Briefly explain the salient features of the Consumer Protection Act, 1986.
For Solution contact +923325198690
ICSI 404 – Assignment 1, the humble bit
For this assignment, you need to create a class, called bit,
to represent one bit. You must internally (private) use an integer to represent
the one bit; the valid values are 0 (off) and 1 (on).
You must fully implement this interface (source file is provided):
public interface IBit {
void set(int value); // sets the value of the bit
void toggle(); // changes the value from 0 to 1 or 1 to 0
void set(); // sets the bit to 1
void clear(); // sets the bit to 0
int getValue(); // returns the current value
bit and(bit other); // performs and on two bits and returns
a new bit set to the result
bit or(bit other); // performs or on two bits and returns a
new bit set to the result
bit xor(bit other); // performs xor on two bits and returns
a new bit set to the result
bit not(); // performs not on the existing bit, returning
the result as a new bit
@Override
String toString(); //
returns “0” or “1”
}
You must implement the logic for these operations – you
cannot use the logic (&, &&, |, ||) operators for these operations.
You may use “if” or “switch”.
You must provide a file (bit_test.java) that has a method
(void runTests()). Each method of “bit” must be tested in bit_test.java. These
tests could throw an exception on failure, print expected and actual values or
print “pass” or “fail”, for example. The tests must be adequate to prove that
your bit class really works. For example – not should test both cases (start
with 0, not yields 1 and start with 1 and yield a 0). Your test cases should be
independent of one another. You do not want one failed test to cause another
failed test to occur. Your main method should call runTests on bit_test. There
should be output that allows a grader to determine that the tests pass or fail.
The graders will also have different tests that they will run.
You must submit buildable .java files for credit.
Rubric |
Poor |
OK |
Good |
Great |
|
Comments |
None/Excessive (0) |
“What” not “Why”, few (5) |
Some “what” comments or missing some
(7) |
Anything not obvious has reasoning (10) |
|
Variable/Function naming |
Single letters everywhere (0) |
Lots of abbreviations (5) |
Full words most of the time (8) |
Full words, descriptive (10) |
|
Unit Tests |
None (0) |
Partial Coverage (7) |
All methods covered, needs more cases
(13) |
All methods/cases covered (20) |
|
Accessors/Mutators /toString |
None (0) |
Some implemented (7) |
All implemented, some fail (13) |
All implemented, all tests pass (20) |
|
And |
None(0) |
|
Implemented, wrong (5) |
Implemented, correct (10) |
|
Or |
None(0) |
|
Implemented, wrong (5) |
Implemented, correct (10) |
|
Not |
None(0) |
|
Implemented, wrong (5) |
Implemented, correct (10) |
|
Xor |
None(0) |
|
Implemented, wrong (5) |
Implemented, correct (10) |
Learn C++ online
Basic Anagram Detector
*Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. For example, the word “Binary” is anagram of “Brainy”.
Public class Utils{
Public static Boolean isAnagram(String s1, String s2)
{
//write your code here
}
}
Public class Main{
Public static void main(String args[])
{
Challenge.isAnagram(“Brainy”, “Binary”);
Challenge.isAnagram(“tops”, “pops”);
}
}
JAVA exercises
In this class, you have been given a class Challenge with a static method fromBinary. This accepts one string parameter and returns an integer. Complete the method so that it returns decimal value of the binary number supplied in the string parameter.
To make this more challenging and to stop you just going to stack overflow and just find the solution, you need to solve this using only the basic mathematical operators (+, -, *, / , % ) .
Public class Challenge{
Public static int fromBinary(String s)
{
//write your code here
}
}
Public class Main{
Public static void main(String args[])
{
Challenge.fromBinary(“101010101”);
Challenge.fromBinary(“111110101”);
}
}
Need Online tutors for teaching programming
Learn Java online
Learn web development online
Learn programming with c/c++
Learn java online from basic to advance level
Online marketing executive (it can be home based job/ onsite job)
- Must be innovative
- Outgoing, bubbly and passionate
- IG unlikes/follows
- IG commenting on other posts
- FB unfriending and finding the right people to connect with in my niche target market
- Assisting with keeping track of whom to send voice notes to
- Posting in groups on my behalf
- Finding opportunities to network and become more visible
- to search all keyword i can use for each vidΓ©o
- to upload and duplicate the video with the tool on each account
- to create link on each account to post
- to create all the account to post.
- must be expert in public relations.
Virtual assistant Required for our online projects
- should be online 8 hours in a day and 5 days in a week.
- contact list building
- Collecting Names, numbers, and emails from websites
- texting and emailing to clients and immediate response to clients
- creating business templates and financial reports.
- social media analysis and marketing
- If you prefer to work from home, you will share your screen for working hours.
Learn computer programming at home
For details contact:
M. Amjad Khan
03325198690
Female Home tutors in islamabad available
Amjad Khan
03325198690