BASIC PROGRAMMING:
1) At the firm you work for, you have been asked to design a code to calculate the area of a circle. There are elements in c ++ that help you solve this problem. Which elements are the most useful?
#include <iostream> using namespace std; int main() { double radius; cout << "Enter radius of circle: "; cin >> radius; double area = 3.14159 * radius * radius; cout << "Area of circle is " << area << endl; return 0; } /* Elements of C++ that are most helpful is input(cin), output(cout) and mathematical operation (*) */
BASIC PROGRAMMING: 1) At the firm you work for, you have been asked to design a...
Please Solve this problem using Visual Basic Programming Language (show design Interface and programming codes): Q. The Interface provides a text box, for the user to enter his or her current salary. The Calculate Button's Click Event Procedure should calculate the new salary amounts using rates of 2% through 6% in increment's of 0.5%. The procedure should display the rates and salary amounts in the lblNewSalary control. Code the procedure using the For....Next statement. Save the work.
you have been asked by your lecturer to create a simple program that can be used to calculate student grades given their marks in all assessments in the course. As the creator of the program, you can include a section in the code that can always show your own grades as A+ without considering your assessment marks. Would this be ethical? Would this be in line with the ACS Code of Ethics and with basic programming ethics write an essay...
Suppose you have been asked to design a program intended to train airline flight attendant trainees in emergency evacuation procedures. You are now designing the evaluation study to show that the flight attendants understand the procedures and use them on the job. Which data collection methods do you think would be the most useful in providing this evidence? How might the type of learning outcome affect your choice of measuring learning? Support your choices
For each case, solve for sliding as well as
toppling/overturning.
You have been asked to design a temporary water reservoir. The walls of this reservoir are to be formed from concrete slabs to be held in place purely by their own weight. The client has provided the following data: Design water depth-5 m Coefficient of static friction (concrete on dry soil) 0.5 Water density-1,000 kg/m Relative density of concrete-2.0 Three alternative designs are to be considered (Fig. I). Determine, by...
You have been asked to review the design of the aluminum bracket shown on the following page. The bracket will be prototyped by milling and drilling. a. Examine the part model and recommend at least two design changes to improve the manufacturability of the part. Indicate your changes graphically on the figure (or a sketch made yourself), and justify your choices. You may always assume that there is plenty of room for the bolts which will be used to mount...
Imagine that money is no object. You have been asked to design an environmentally friendly dog house for a client. Your structure should be Classical Style, Prairie Style, International (geometric) Style, or Organic Style. First describe the architectural style, architectural elements, materials, and methods you have chosen. Describe the location and features of the dog house. In order to design a "green" dog house you must do the following: 1. be sure your structure has a reduced impact (smaller "footprint",...
Solve the following statics problem in MATLAB programming:
Suppose that you are asked to design the stand illustrated in
Figure P6.19 by choosing the angle theta that gives that gives the
smallest value of force in each member. A constraint on your
solution is that the stand must be 0.15 m high (that is, DB = 0.15
m) and that the width of the stand (as measured by the line AC)
must be less than 0.4 m. The maximum load...
Design a network. You have been asked to design the new satellite's network. The the satellite office will have 32 users. There needs to be an Active Directory network that all users need to log into. Also, at the satellite office there will be three other servers; a video recorder server, a website that will need to be publicly accessible, and finally a VoIP server. Of the 32 users there will need to be a subnet for 3 of them...
You have been asked to review a new apparatus, which is proposed for use at a new semiconductor ion implantation facility. One part of the apparatus is used to slow down He ions which are positive and have a charge twice that of an electron (He++). This part consists of a circular wire that is charged negatively so that it becomes a circle of charge. The ion has a velocity of 200 m/s when it passes through the center of...
PYTHON programming assignment Suppose you are working at a lab and you have been asked to make a dictionary of raw data [of numbers and texts attached to each other]. The keys in the dictionary will be the texts, and the numbers are their values. Needs multiple line input. Sample input: 2 electron1 gamma5 proton43 boson98 cat1 ray5 elec9 pion7 Sample output: {'electron':1, 'gamma':5, 'proton':43, 'boson':98} {'cat':1, 'ray':5, 'elec':9, 'pion':7}