All posts by Verified

Kinetic

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY

Create a new C++ program named “partA_q1.cpp”
Write a program in C++ to calculate and display the kinetic energy (J) of a 2.4 kg mass when the user provides its velocity (km/h). Use the following equation:
1 =2× ×(
Question 2
Create a new C++ program named “partA_q2.cpp”
× 1000 2 60×60 )
Write a program in C++ that will let the user know whether a number that they enter is a multiple of eleven. Hint: If there is no remainder after dividing a number by eleven, that number is ***** multiple of eleven.
Question 3 [7 marks]
Create a new C++ program named “partA_q3.cpp”
Write another program that performs the same task as Question 2, but this program should allow the user to test another number, if they wish to do so.
(Hint: Modify your code from Question 2.)
Question 4 [15 marks] Create a new C++ program named “partA_q4.cpp”
Write a C++ program that uses a for() loop to calculate and display the sum of the following series, for a given the number of terms (n). n is to be provided by the user and must be greater than four.
= 1 + 1 + 1 +⋯+ 1
sin (1) sin (2) sin (3) sin (n) ππππ

Design and implement

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY

Design and implement a procedure named reverseFactorial. This procedure should take one integer parameter x. When x is a positive integer, this procedure should return the smallest positive
integer n for which n! (i.e. 1*2*3*…*n) is greater than or equal to x. For example:
reverseFactorial(24) should return 4 since (1*2*3*4) = 24 but (1*2*3) < 24;
reverseFactorial(119) should return 5 since (1*2*3*4*5) > 119 but (1*2*3*4) < 119.
//Requires: None
//Modifies: None
//Effects: Returns the smallest positive integer n for which n!
// (i.e. 1*2*3*…*n) is greater than or equal to x, for positive
// integer x. Otherwise returns 1.
public static int reverseFactorial(int x) {
//write the code here}

Graphic shape

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY

The purpose of this project is to provide you with practice using conditional statements, loops, and functions. Your
task is to write a program that allows a user to display a simple graphic shape using text symbols. Five basic shapes
are allowed: V-shape, Hat-shape, X-shape, Right-Arrow-shape, and the Left-Arrow-shape. The shapes are defined
as follows:
Type Parameters Limitations Sample Input Sample
Output
V-shape Number of rows
(n)
0 < n < 30 V 4 * *
* *
* *
*
Hat-shape Number of rows
(n)
0 < n < 30 H 4 *
* *
* *
* *
X-shape Number of rows
(n)
0 < n < 30
and
n is odd
X 5 * *
* *
*
* *
* *
Rightarrowshape
Number of rows
(n)
0 < n < 30
and
n is odd
R 5 *
**
***
**
*
Left-arrowshape
Number of rows
(n)
0 < n < 30
and
n is odd
L 5 *
**
***
**
*
Your project should provide an interactive menu system that allows a user to select the type of object to display.
The following menu items must be provided: V, H, X, R, L, and Q. The meanings of these items are:
V – V shape
H – Hat shape
X – X shape
R – Right arrow shape
L – left arrow shape
Q — quit.
The letter indicates which shape to display and will always be followed by a space and an integer value
representing size of the shape. Valid input can be uppercase as well as lowercase characters. All other letters
entered as command inputs are considered invalid. Provide a mechanism to allow a user to recover from an error.
For example, if the user enters a Z, do not terminate the program. Inform the user that an error has occurred,
display an error message, and discard the erroneous information i.e. if an incorrect command is detected, make
sure to flush the input buffer using cin.ignore(80,’\n’).
A valid shape command code will always be followed by an integer valued size. The value provided may not be
acceptable based on the limitations outlined in the table. If you detect an invalid size, display a meaningful error
message, reject the command, and allow the user to enter a new command.
Program Design:
To solve this program, you need to decompose the problem into manageable pieces. Fortunately, the program
naturally breaks into functional units based on the different shapes. Design your solution so that your main
program calls functions to complete the various tasks. For example there should be functions to display each
shape, and there should one or more functions to get a valid command code.

 

 

 

Create an Array

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY

 

Create an Array of 10 random whole numbers between 1-100.
You either select them or use the random function for bonus points).
Create a method to find the average of the 10 numbers.
Display the average to the screen.
Create a method to find the min and the max.
Display the min and max to the screen.
Sort the Array from low to high and display the the numbers on the screen.
Reverse the Array sort from high to low and display the numbers on the screen.

 

 

HM87

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY

Question 23 True/False:

Your lecturer argues that myth is paramount and that ritual is a secondary phenomenon that has little effect on the identities of individuals and groups.

Question 24 The idea that humans seem fascinated and empowered by the dark as long as it is confined/ conquered/controlled by the light is an example of: Group of answer choices a. The power of taboo & mana to organize & motivate human energies, beliefs, and institutions. b. Mary Douglas’ argument that without binary categories, life is at best confusion and at worst insane. c. How Apollonian & Dionysian elements are universal in religion. d. All of the above are true. e. A and B only are true.

Flag this Question Question 30 Sir James Frazer and Edward Tylor saw religion as: Group of answer choices An opiate, a drug that prevented believers from paying attention to material inequalities. A value system that acted as a social glue, allowing people to live together in large, mostly harmonious groups. A means of reducing individual anxiety, especially within small-scale societies. A survival, a leftover and meaningless set of beliefs and rituals superseded by science. None of the above

Question 31 Structural-Functional approaches relate to which of the following? Group of answer choices

How Marco’s intervention in Sub-Chief Andrea’s affairs addressed an imminent breakdown in Andrea’s authority. How rite of rebellion promote social cohesion and reduce tensions by temporarily overturning normative roles, identities, and inequalities in society. How economically, politically, and culturally dissaffected youth chose to reject standard life options and join punk bands in late 1970’s Los Angeles, a bastion of Late Capitalism.

All of the above are true. A and B only are true.

Question 35 Your lecturer argued which of the following? Group of answer choices Religion provides a form of authority that can’t be falsified, unlike science. Monotheism evolves prior to Polytheism. Prior to 500 years ago, many people would have asked, “Why is there religion?” A and C only are true. None of the above are true. Question 39According to Eller’s article, the three aspects of the anthropological perspective include::

Group of answer choices

The rejection of relativist approaches. The translation of the language, structure, and concepts of the other’s religion into terms we can understand. The encouragement of a holistic approach. All of the above are true. None of the above are true.

Question 47 According to your lecturer, Jerry Falwell’s argument that 9-11 was the fault of feminists and gays is an example of: Group of answer choices

An automatically enforced punishment through Taboo rules. Part of a deep conspiracy of right-wing crazies.

A key to Turner’s arguments about the function of ritual. A and C only are true.

Question 50 William Burroughs represents, according to your lecturer and Mary Douglas:

Group of answer choices The problem of norms and how they force us to live dull and unadventurous lives. The problem of taboos and how they make us afraid to move beyond stereotypical identities and roles. The problem of how rules systems generate broken identities in the form of psychopathology. The problem that is the final loss of all identity, stability, meaning, and role in the rejection of what seem only contingent taboos.