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

Write down the R solutions of the following questions.

Two types of medication for COVID-19 are being tested to determine if there is a difference in the percentage of adult patient reactions. 20 out of a random sample of 200 adults given Medication_A still had COVID-19 30 minutes after taking the medication. 12 out of another random sample of 200 adults given Medication_B still had COVID-19 30 minutes after taking the medication. Test the equality of proportions at a 1% level of significance.


• Create a C++ program using Fibonacci sequence is a numerical sequence such that after the second element all numbers are equal to the sum of the previous two elements.


1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...


Write a program to calculate and print the first 20 elements of this sequence. Use a 20-element array to perform this task.  




Given two boolean values

  1. isGrassTrimmerFound and isWaterHosePipeFound as inputs, create three JS promises using async/await and try/catch blocks. For cutting the grass,
  • resolve with "Grass Trimmed" text, if the isGrassTrimmerFound is true
  • reject with "Grass Trimmer Not Found" text, if the isGrassTrimmerFound is false
  1. For cleaning the garden,
  • resolve with "Garden Cleaned" text
  1. For watering the plants,
  • resolve with "Watered Plants" text, if the isWaterHosePipeFound is true
  • reject with "Water Hose Pipe Not Found" text, if the isWaterHosePipeFound is false

Input

  • The first line of input contains a boolean isGrassTrimmerFound
  • The second line of input contains a boolean isWaterHosePipeFound

Sample Input 1

true

true

Sample Output 1

Grass Trimmed

Garden Cleaned

Watered Plants

Sample Input 2

true

false

Sample Output 2

Grass Trimmed

Garden Cleaned

Water Hose Pipe Not Found




Search Item in a Mart

Given an array 

mart of objects in the prefilled code and categoryOfItem, item as inputs, create a JS promise,

resolve with "Item Found" text, if the 

categoryOfItem matches with the category and the corresponding items list includes the item

reject with "Category Not Found" text, if the 

categoryOfItem does not match with any catergory in the mart

reject with "Item Not Found" text, if the 

items list does not include item

Use async/await and try/catch blocks.

Quick Tip
You can use array methods find() and includes().
Input
The first line of input contains a string categoryOfItem
The second line of input contains a number item
Output
The output should be a single line string with the appropriate message
Sample Input 1
pulses
green gram
Sample Output 1
Item Found

Sample Input 2
detergents
tide
Sample Output 2
Category Not Found


Write a function to display the result of examination of students. Following requirements must be fulfilled: i. Read the names and marks of at least 5 students, data should be acquired from the user and saved as dictionary (using a function named getinfo) ii. Rank the top three students with highest marks (make a function named top3) iii. Give cash rewards. Rs. 5000 for first rank, Rs. 3000 for second rank, Rs. 1000 for third rank. Value cannot be modified (function name should be cashprize)


Trekking Kit

Given an object

trekkingKit in the prefilled code and item item as an input, write a JS program to add the method isKitContains to the constructor function Trekking using the prototype. The method

isKitContains checks whether the trekkingKit contains the given item.

Quick Tip

The Object.getOwnPropertyNames() method gives an array containing the properties of the object.

Input

The input will be a single line containing a string

itemOutput

The output should be a single line containing a boolean value

Sample Input 1

ruckSackBag

Sample Output 1

true

Sample Input 2

surfboard

Sample Output 2

false




Create a program that will create 2X3x3 dimensional array. This program will enable the user to input 3 scores of student1, student2 and student3 for every plane, then will enable to display the average score of each student in the plane.

average my vary depending on the scores inputted by the user


Due to upcoming end of financial year, you are being called in to write a program which will read in an input file called IncomeRec.txt, whichcontains a list of Annual(Gross)incomerecordsof employees in a firm,and produce various reports as outlined and You must read this input file(IncomeRec.txt)and store the records ofgrossincomesinto appropriate arrays. 2.Your program should then be able to process the following commands. i.e. programshould provide user with the following menu.▪1. Print the entire list.▪2. Print list sorted byGross income.▪3. Print list ofemployees which match a given lastname initial▪4. Calculate:a)the Taxcorresponding to the provided grossincomeof each employeeusing Table 1;and b)the Net Incomeand c)Print in a filecalled IncomeTax.txtwhere the tax and Net income are displayed in separatecolumns.[NB. The tax is calculatedaccording to the Tax Calculation Table provided and the Net Income =Gross income–Tax]▪5. Exit program


Due to upcoming end of financial year, you are being called in to write a program which will read in an input file called IncomeRec.txt, whichcontains a list of Annual(Gross)incomerecordsof employees in a firm,and produce various reports as outlined


Develop a C program to copy the content of one file and store that content in another file


LATEST TUTORIALS
APPROVED BY CLIENTS