} 1. write a function that takes a string as parameter, return true if it’s a valid variable name, false otherwise. You can use keyword module’s iskeyword() to determine is a string is keyword.
import keyword
keyword.iskeyword(var) #returns true or false
}2. write a function that returns the length of a string (without using len() function)
}3. write a function that counts number of vowels in a string
}4. write a function that checks if a word is palindrome
PYTHON PROGRAMMING
In: Computer Science
Must Show all work
3. A key step in the production of sulfuric acid is the oxidation of SO2(g) to SO3(g):
2SO2(g) + O2(g) ----------> 2SO3(g)
At 298K, G= -141.6kJ; H=-198.4kJ; and S=-187.9J/K
a) Us the date to decide if this reaction is spontaneous at 25deg Cand predict how G will change with increasing T.
b) Assuming DH and DS are constant with increasing T, is the reaction spontaneous at 900deg C?
c) If the reaction reaches the equilibrium , calculate the temp.
In: Chemistry
in heating ventilation and air conditioning (HVAC) explain what operation is carried out to achieve comfort during summer and in winter
In: Mechanical Engineering
Toolkit Exercise 10.3
Application of Simon’s Control Systems Model
Consider a change you are familiar with (higher education change).
1. Describe the control processes and measures that were used with the change (i.e., the belief, interactive, boundary, and diagnostic controls). When and how were they used and what was their impact?
a. During the earlier stages of the change initiative
b. During the middle stages of the change initiative
c. During the latter stages of the change initiative
2. Were there forbidden topics in the organization, such as questions related to strategy or core values? Were those limits appropriate and did anyone test those limits by raising controversial questions or concerns? Were small successes celebrated along the way?
3. What changes could have been made with the control processes and measures that would have assisted in advancing the interests of the change?
In: Operations Management
Identify possible challenge stressors and the hindrance stressors that could be affecting your team members. Is it possible for the same stressor to be a challenge stressor to one person and a hindrance stressor to another? Explain your answer, please.
In: Operations Management
Please answer questions in the order listed. You do not need to be completely correct, but I do need to see an honest effort. For this post, YOU MUST SHOW YOUR WORK, on any question requiring math. This is to make it so that I can see where exactly where you mis-stepped in your calculation or logic, and/or so that your classmates can learn from you.
5.) MicroServe needs $100,000 to upgrade its warehouse. Dayna, the CEO of MicroServe, thinks they can put off the upgrade for 5 years. The company will make 5 annual deposits to fund this expansion. If the account earns 8% interest, how much does Dayna need to deposit every year? (Round your answers to the nearest dollar and show your work!!!)
6.) How is the carrying value of a bond computed?
7.) When the effective interest rate is higher than the stated interest rate on a bond issue, will the bond sell at a discount or premium? Why?
8.) Explain the difference between the straight-line and the effective interest method of amortization of bond premiums and discounts.
In: Accounting
Is the evaluation and control process adequate for a company that emphasizes creativity? Are control and creativity compatible?
In: Operations Management
The budget director for Solomon Cleaning Services prepared the following list of expected selling and administrative expenses. All expenses requiring cash payments are paid for in the month incurred except salary expense and insurance. Salary is paid in the month following the month in which it is incurred. The insurance premium for six months is paid on October 1. October is the first month of operations; accordingly, there are no beginning account balances.
Required
Complete the schedule of cash payments for S&A expenses by filling in the missing amounts.
Determine the amount of salaries payable the company will report on its pro forma balance sheet at the end of the fourth quarter.
Determine the amount of prepaid insurance the company will report on its pro forma balance sheet at the end of the fourth quarter.
|
In: Accounting
1. Give at least 5 reasons why we should learn the
subject Operating System. (10pts)
2. Give at least 5 examples of Operating System. Attach actual
pictures of each OS after the installation.
(10pts)
3. Explain why OS is an important part of almost every computer
System. Minimum 10 Sentences. (10pts)
4. Explain the diagram of Computer System which includes (Hardware,
OS, application program and users). (10pts)
5. The five major activities of an operating system in regard to
process management are? (5pts)
6. Difference Between RAM and ROM?
In: Computer Science
JAVA
Lab 9: Phone Call
Write a program that will calculate the cost of a phone call as follows:
Include all Prologue information with your program
1. 9 minutes
2. 10 minutes
3. 11 minutes
4. 35 minutes
5. 0 minutes
NOTE 1:
NOTE 2:
1. Declare all variables within the data
declaration section of each class and
method. (-.1)
2 Do not get input on the same line as a variable
declaration. (-.1)
3. Do not place an equation for computation on the same line as
declaring a variable. (-.1)
4. Do not place an equation for computation on the
same line as an input statement. (-.1)
5. Do not place any
computations within an output statement.
(-.1)
In: Computer Science
Middler Corporation, a manufacturer of electronics and communications systems, uses a service department charge system to charge profit centers with Computing and Communications Services (CCS) service department costs. The following table identifies an abbreviated list of service categories and activity bases used by the CCS department. The table also includes some assumed cost and activity base quantity information for each service for October. CCS Service Category Activity Base Budgeted Cost Budgeted Activity Base Quantity Help desk Number of calls $96,750 2,500 Network center Number of devices monitored 660,250 9,500 Electronic mail Number of user accounts 71,000 7,100 Handheld technology support Number of handheld devices issued 142,400 8,900 One of the profit centers for Middler Corporation is the Communication Systems (COMM) sector. Assume the following information for the COMM sector: The sector has 2,000 employees, of whom 60% are office employees. Almost all office employees (90%) have a computer on the network. 95 percent of the employees with a computer also have an e-mail account. The average number of help desk calls for October was 1 calls per individual with a computer. There are 290 additional printers, servers, and peripherals on the network beyond the personal computers. All the nonoffice employees have been issued a handheld device. a. Determine the service charge rate for the four CCS service categories for October. Round your answers to two decimal places. CCS Service Category Service Charge Rate Help desk $ Per call Network center $ Per device monitored Electronic mail $ Per user or e-mail account Handheld technology support $ Per device b. Determine the charges to the COMM sector for the four CCS service categories for October. October charges to the COMM sector: Help desk charge $ Network center charge $ Electronic mail charge $ Handheld technology support $
In: Accounting
I am getting the fallowing error when I compile my application:
mingw32-g++.exe -Wall -fexceptions -g -c E:\vmmar\Area\area\main.cpp -o obj\Debug\main.o
E:\vmmar\Area\area\main.cpp: In function 'int main()':
E:\vmmar\Area\area\main.cpp:41:15: error: 'setRadius' was not declared in this scope
setRadius(rad);
^
E:\vmmar\Area\area\main.cpp:42:15: error: 'setShapeId' was not declared in this scope
setShapeId(id);
^
E:\vmmar\Area\area\main.cpp:43:23: error: 'setUnitOfMeasure' was not declared in this scope
setUnitOfMeasure(unit);
^
E:\vmmar\Area\area\main.cpp:44:23: error: 'setShapeType' was not declared in this scope
setShapeType("Circle");
^
E:\vmmar\Area\area\main.cpp:45:41: error: 'getArea' was not declared in this scope
cout << "Area of Circle : " << getArea() << endl;
^
E:\vmmar\Area\area\main.cpp:46:10: error: 'display' was not declared in this scope
display();
^
E:\vmmar\Area\area\main.cpp:57:13: error: 'setLength' was not declared in this scope
setLength(l);
^
Process terminated with status 1 (0 minute(s), 0 second(s))
7 error(s), 0 warning(s) (0 minute(s), 0 second(s))
######################################################################################################################
The following is my entire application:
#ifndef SHAPE_H_INCLUDED
#define SHAPE_H_INCLUDED
#include <iostream>
using namespace std;
const float PI = 3.1415926;
class Shape{
private:
string shapeType;
string shapeId;
string unit_of_measure;
public:
Shape(){}
Shape(string id){
shapeId = id;
}
Shape(string Id, string type, string unit){
shapeId = Id;
shapeType = type;
unit_of_measure= unit;
}
string getShapeType(){
return shapeType;
}
string getSgapeId(){
return shapeId;
}
string getUnitOfMeasure(){
return unit_of_measure;
}
void setShapeType(string type){
shapeType = type;
}
void setShapeId(string id){
shapeId = id;
}
void setUnitOfMeasure(string unit){
unit_of_measure = unit;
}
virtual float getArea() = 0;
};
#endif // SHAPE_H_INCLUDED
###############################################################################################################################
#ifndef AREACIRCLE_H_INCLUDED
#define AREACIRCLE_H_INCLUDED
#include "Shape.h"
using namespace std;
/* Circle Class */
class Circle:public Shape
{
private:
float radius;
public:
/* set value for radius */
void setRadius(float rad)
{
radius = rad;
}
/* get the value of radius */
float getRadius()
{
return radius;
}
// float radius;
}; //float areaCircle;
#endif // AREACIRCLE_H_INCLUDED
###############################################################################################################################
#ifndef AREASQUARE_H_INCLUDED
#define AREASQUARE_H_INCLUDED
#include "Shape.h"
using namespace std;
class Square:public Shape
{
private:
float sidelen;
public:
/* get the value of length */
float getLength()
{
return sidelen;
}
/* set value for length */
void setLength(float l)
{
sidelen = l;
}
};
#endif // AREASQUARE_H_INCLUDED
################################################################################################################################
#include <iostream>
#include "Circle.h"
#include "Shape.h"
using namespace std;
/* Constructor */
Circle():Shape()
{
{
radius = 0;
}
/* Copy Constructor, which takes a parameter */
Circle(string id, float rad):Shape(id)
{
radius = rad;
}
Circle(string id, string type, string unit, float rad):
Shape(id, type, unit){
radius = rad;
}
/* Method to calculate the area of circle */
float getArea()
{
return PI*radius*radius;
}
void display(){
cout<<"Shape Id: "<<getSgapeId()<<endl;
cout<<"Shape Type: "<<getShapeType()<<endl;
cout<<"Unit of Measure: "<<getUnitOfMeasure();
cout<<"Area: "<<getArea()<<endl;
cout<<endl;
}
}
#################################################################################################################################
#include <iostream>
#include "Square.h"
#include "Shape.h"
using namespace std;
Square():Shape()
{
{
sidelen = 0;
}
/* Copy Constructor, which takes a parameter */
Square(string id, float l):Shape(id)
{
sidelen = l;
}
Square(string id, string type, string unit, float l): Shape(id,
type, unit)
{
sidelen = l;
}
/* Method to calculate the area of circle */
float getArea()
{
return sidelen * sidelen;
}
void display()
{
cout<<"Shape Id: "<<getSgapeId()<<endl;
cout<<"Shape Type: "<<getShapeType()<<endl;
cout<<"Unit of Measure: "<<getUnitOfMeasure();
cout<<"Area: "<<getArea()<<endl;
cout<<endl;
}
}
####################################################################################################################################
#include <iostream>
#include "Square.h"
#include "Circle.h"
#include "Shape.h"
using namespace std;
int main()
{
/*Circle = circle1;
Square = square1;
*/
float rad;
float l ;
int menuOption;
string id, type, unit;
do
{ // Starting of while loop
cout << endl << "=========CALCULATE
AREA================" << endl;
cout<< endl
<< "Select an Object" << endl
<< " 1: Circle" << endl
<< " 2: Square" << endl
<< " 0: Exit" << endl
<< " Enter Your Choice: ";
cin >> menuOption;
switch(menuOption)
{
case 1:
cout<<"Enter shape id: ";
cin>>id;
cout<<"Enter unit of measure: ";
cin>>unit;
cout<< "Enter radius of the circle : ";
// float rad;
cin >> rad;
setRadius(rad);
setShapeId(id);
setUnitOfMeasure(unit);
setShapeType("Circle");
cout << "Area of Circle : " << getArea() <<
endl;
display();
break;
case 2:
cout<<"Enter shape id: ";
cin>>id;
cout<<"Enter unit of measure: ";
cin>>unit;
cout<< "Enter length of one side of the square : ";
//float l ;
cin >> l;
setLength(l);
setShapeId(id);
setShapeType("Square");
setUnitOfMeasure(unit);
display();
cout << "Area of Square : " << getArea() <<
endl;
break;
}
} while(menuOption!=0);
{
cout << endl<< endl <<
"============== THANK YOU ===================" <<
endl<< endl;
return 0;
}
}
##############################################################################################################################
In: Computer Science
In: Operations Management
Write a small assessment no more than 2 pages including mention above: Alternatives and improvements to refrigerators and freezers in Cape York Community.
Remote Indigenous communities rely on refrigeration and freezers to store large amounts of food over time, ensuring traditional hunting practices can be maintained and people can come and go from Country as needed. This project looks at mechanisms for freezing and storing food beyond the generic available appliances which are dependent on connection to a large, pre-existing solar power supply.
Include the following aspect in this report: write a professional and concise document which draws on appropriate background information. An assignment is well written, contains appropriate references and draws on suitable background information. consider the context of the engineering work including social, cultural, environmental and commercial factors. All required factors are considered with sufficient detail and analysis relevant to the proposed project. And there is evidence that standard engineering principles and practices have been applied to the development of the assignment. The document contains all required elements outlined in the task description including introduction, project objective and possible design criteria.
In: Mechanical Engineering
To test whether extracurricular activity is a good predictor of college success, a college administrator records whether students participated in extracurricular activities during high school and their subsequent college freshman GPA.
|
Extracurricular Activity |
College Freshman GPA |
|---|---|
| Yes | 3.57 |
| Yes | 3.32 |
| Yes | 3.86 |
| Yes | 3.72 |
| No | 2.93 |
| No | 3.88 |
| No | 3.46 |
| No | 2.71 |
| No | 3.86 |
| No | 2.84 |
(a) Code the dichotomous variable and then compute a point-biserial correlation coefficient. (Round your answer to three decimal places.)
In: Math