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

Develop a first-cut design class diagram for a doctor who checks if a patient is vaccinated or not and when by checking previous patient health records


Type two statements that use rand() to print 2 random integers between (and including) 100 and 149. End with a newline. Ex:
101
133
Note: For this activity, using one statement may yield different output (due to the compiler calling rand() in a different order). Use two statements for this activity. Also, srand() has already been called; do not call srand() again.

#include <cstdlib> // Enables use of rand()
#include <ctime> // Enables use of time()
using namespace std;

int main() {
int seedVal;
cin >> seedVal;
srand(seedVal);

/* Your solution goes here */

return 0;
}
Define a class called Point that contains two data members: x and y of float type. Define constructors to initialize the data members. Define a friend function to calculate distance between two point objects. Declare a class DArray which has data member size to store the size of the array, and element - a pointer to point class type. Define 1-arg. constructor that takes size as parameter and allocates memory dynamically to element of given size. Also define destructor to release the memory. Overload [] operator that takes the index position as parameter to manipulate (store/retrieve) the required element in the array. In main create an object of DArray to hold 3 objects of Point type and find the distance between every pair of points.
Create a class called Person that has three private data members name, age and height and the
following public member functions:
• Default constructor – To initialize the data members
• Parameterized constructor – To initialize it to the given values
• getInput() - To get the person details from the user
• showOutput() - A constant member function to display the person details. Names
should be left justified and age and height to be right justified
isTaller() - A constant member function that takes a constant person object as parameter and
compares the height of the person object which calls this function with the height of the person
object that is passed as parameter and returns true if the calling object is taller than passed
argument; otherwise returns false; Write a main function to create an array of 3 Person objects
and find the tallest person. Display all the persons details and print the details of the tallest
person.

String Ending with Vowel

Given an array of vowels in the prefilled code and a string

inputString as an input, write a JS program to check whether the inputString ends with a vowel.

Quick Tip

You can use the string methods toUpperCase() and endsWith().

Input

  • The input will be a single line containing a string inputString

Output

  • The output should be a single line containing a boolean value

Sample Input 1

Five

Sample Output 1

true

Sample Input 2

Apples grow best where there is cold in winter

Sample Output 2

false




Common Items in Three Arrays

Given three arrays

arr1, arr2 and arr3, write a JS program to find the common items among the three arrays.Input

  • The first line of input contains an array arr1
  • The second line of input contains an array arr2
  • The third line of input contains an array arr3

Output

  • The output should be a single line containing an array of common items among the three arrays

sample input 1

[1, 2, 3, 'cat']

[1, 'cat', 7, 10]

[1, 'cat', 16, 64]


sample output1

[ 1, 'cat' ]


Find the Duplicate in an Array

Given an array

myArray, write a JS program to find the duplicate item in the array.Input

  • The input will be a single line containing an array myArray

Output

  • The output should be a single line containing the duplicate item or false if no duplicate item is present in the myArray

sample input 1

['light', 'dark', 'twilight']


sample ouput 1

false


sample input 2

[1, 2, 3, 4, 5, 6, 7, 7, 8]


sample output 2

7


Write a c++ program to generate a dynamic multiplication table allow the user to specify the following;

-The type of multiplication table 

-The starting point 

-The ending point

// 2 * 2 = 1

// 2 * 10 = 10




  1. Develop a program to display the multiplication table for any numbers key in by the user, define the loop to display the multiplication process in a function.
  2. Define a function to find out the minimum, maximum, and mean values in the array of 10 numbers.

Given an integer number N as input. Write a program to print the right-angled triangular pattern of N rows as shown below.

Input

The first line of input is a positive integer.

Explanation

For example, if the given number is

5, the output should be

______
|    /
|   /
|  /
| /
|/

7,the out put should be

________
|      /
|     /
|    /
|   /
|  /
| /
|/




LATEST TUTORIALS
APPROVED BY CLIENTS