Other Programming & Computer Science Answers

Questions: 1 727

Answers by our Experts: 1 357

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Shows the relationship between security mechanisms and attacks.


Create a flowchart that let the user guess the secret number. Display "higher" if the number entered by the user is higher that the secret number, otherwise, display "lower". Display "correct" if the user correctly guessed the secret number and terminate the program

Create a flowchart that prompts the user if the given password is correct or incorrect. Terminate the program if the password is correct or incorrect otherwise display an error message and continue asking the user for the password. Declare the password as 143

Questions::



1. Discuss the present foreign exchange policy. Elaborate the impact of the present policy on the economy and its trade and what suggestions can be given for the further trade policy.



2. How is derivative is used as a hedging instrument? By taking examples of derivative products traded in


global financial markets, explain the valuation and pricing process of derivatives.



3. Why do countries hold foreign exchange reserves. Discuss the position of foreign exchange reserves in India over a period of time and explain its impact on the economic positioning of the nation in global trade?

Create a flowchart that display hello world a number of times

Draw a UML class diagram

Design the class Doctor, inherited from the class Person, with an additional data member to store a doctor’s specialty. Add appropriate constructors and methods to initialize, access, and manipulate the data members.


 Design the class Bill with data members to store a patient’s ID and the patient’s hospital charges such as pharmacy charges for medicine, the doctor’s fee, and the room charges. Add appropriate constructors and methods to initialize, access, and manipulate the data members.


Design class Patient, inherited from the class Person, with additional data members to store a patient’s ID, age, date of birth, attendingphysician’s name, the datewhenthepatientwas admittedin the hospital, and the date when the patient was discharged from the hospital. (Use the class Date to store the date of birth, admit date, discharge date, and the class Doctor to store the attending physician’s name.) Add appropriate constructorsandmethodsto initialize, access,andmanipulate the data members




2. An appliance repair shop has 5 electric fans, 12 washing machines, and 18 air conditioning units to be repaired. The store employs two part-time repairmen. Repairman A can repair 3 electric fans, 3 washing machines, and 4 airconditioning units in a week, while Repairman B can repair 1 electric fan, 3 washing machines, and 6 air conditioning units in a week. repairman A is paid Php 5,000 a week and repairman B is paid Php 4,200 a week. To minimize cost how many weeks should each of the two repairmen be employed?

Solution:

Let  x= _________________ and y = ______________________

Table of information:



Objective Function:________________

Subject to Constraints:_________________________


1.) Rina needs at least 48 units of protein, 60 units of carbohydrates, and 50 units of fat each month. From each kilogram of food A, she receives 2 units of protein, 4 units of carbohydrates, and 5 units of fats. Food b contains 3 units of protein, 3 units of carbohydrates, and 2 units of fats. If food A costs Php110 per kilogram and food B costs Php 90 per kilogram. How many kilograms of each food should Rina buy each month to keep costs at a minimum?

Solution:

Let  x= _________________ and y = ______________________

Table of information:



Objective Function:________________

Subject to Constraints:_________________________




Write a c code to perform binary search. If the element is present print its next


nearest prime number. If the element is not present print -1.


EXAMPLE:


Input:


10 20 30 40 50 60 70 80 90 100


Search element-50


Output: 53 (50 is present so print 53(next nearest prime number))


Draw a UML class diagram. Create a CollegeCourse class. The class contains fields for the course ID (for example, “CIS 210”), credit hours (for example, 3), and a letter grade (for example, ‘A’). Include get and set methods for each field.



Create a Student class containing an ID number and an array of five CollegeCourse objects. Create a get and set method for the Student ID number. Also create a get method that returns one of the Student’s CollegeCourses; the method takes an integer argument and returns the CollegeCourse in that position (0 through 4).



Next, create a set method that sets the value of one of the Student’s CollegeCourses; the method takes two arguments—a CollegeCourse and an integer representing the CollegeCourse’s position (0 through 4). Save the files as CollegeCourse.java and Student.java.




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS