Given two dates D1 and D2, write a program to count the number of Saturdays and Sundays from D1 to D2 (including D1 and D2).
The date in string format is like "8 Feb 2021".
sample input:
25 Jan 2021
14 Feb 2021
output:
Saturday: 3
Sunday: 3
The output should contain the sum and average of the numbers that appear in the string.
Note: Round the average value to two decimal places
sample input:
I am 25 years and 10 months old
output
37
17.5
String Slicing
Write a Javascript Program for String Slicing
The below link contains String Slicing Question and Test cases
https://drive.google.com/file/d/1FyEmmo5k4KeZPnFcLVWUyqiPZGXVs1nz/view?usp=sharing
The below link contains code
https://drive.google.com/file/d/1Y-86sblnbImafltwE2vMmsfUINcXnSrp/view?usp=sharing
In this Javascript coding program they had two test cases
We need all two test cases can be came when code was run. I want exact outputs for all two test cases
Star Children’s Academy has opened a movie theater in its own capacity to host movie afternoon once a week for every class (including all sections e.g. Class 1 has three sections Class1-A, Class1-B, Class1-C divided because of large strength in one class, so here one class means 3 sections’ students will be watching a movie together one week and then next week another class and its sections) covering the topics such as patriotism, kindness, love, self-awareness, animal care and protection, etc. As a Visual Programmer, you are required to design and develop a Windows Form Application that facilitates the class teachers to reserve tickets on behalf of students for the movie. No student can reserve directly for himself.
Square at Alternate Indices
Write a Javascript Program for Square at Alternate Indices
The below link contains Square at Alternate Indices Question and Test cases
https://drive.google.com/file/d/1NMtBGioe4_oPKJpvPJ3iQW_7uRd2zjWz/view?usp=sharing
The below link contains code
https://drive.google.com/file/d/1mqvV-SoTKa6m2tUL_rxcBeWcdKjUVZgm/view?usp=sharing
In this Javascript coding program they had two test cases
We need all two test cases can be came when code was run. I want exact outputs for all two test cases
Assuming the following declarations: const int NUMROWS = 3; const int NUMCOLS = 4; int val[NUMROWS][NUMCOLS] = {8,16,9,52,3,15,27,6,14,25,2,10}; Which of the following loops correctly outputs each element of the array in row order? 1. for (i = 0; i < NUMROWS; i++) { for (j = 0; j < NUMCOLS; j++) cout << setw(4) << val[i][j]; cout << endl; } 2. for (i = 0; i < NUMROWS; i++) { cout << setw(4) << val[i][j]; cout << endl; } 3. for (i = 0; i < NUMCOLS; i++) { cout << setw(4) << val[i][j]; cout << endl; } 4. for (i = 0; i < NUMROWS*NUMCOLS; i++) { cout << setw(4) << val[i][j]; cout << endl; }
Assuming the following declarations: const int NUMROWS = 3; const int NUMCOLS = 4; int val[NUMROWS][NUMCOLS] = {8,16,9,52,3,15,27,6,14,25,2,10}; Which of the following loops correctly outputs each element of the array in row order? 1. for (i = 0; i < NUMROWS; i++) { for (j = 0; j < NUMCOLS; j++) cout << setw(4) << val[i][j]; cout << endl; } 2. for (i = 0; i < NUMROWS; i++) { cout << setw(4) << val[i][j]; cout << endl; } 3. for (i = 0; i < NUMCOLS; i++) { cout << setw(4) << val[i][j]; cout << endl; } 4. for (i = 0; i < NUMROWS*NUMCOLS; i++) { cout << setw(4) << val[i][j]; cout << endl; }
Create student.dat, which contains details like
Roll number, name, age, address
Create a menu driven program to perform the following
1. Create file
2. Read and display records
3. Add new records
4. Modify a record
5. Delete a record
6. Search for a record
7. Exit
Assuming the following declarations: const int NUMROWS = 3; const int NUMCOLS = 4; int val[NUMROWS][NUMCOLS] = {8,16,9,52,3,15,27,6,14,25,2,10}; Which of the following loops correctly outputs each element of the array in row order? 1. for (i = 0; i < NUMROWS; i++) { for (j = 0; j < NUMCOLS; j++) cout << setw(4) << val[i][j]; cout << endl; } 2. for (i = 0; i < NUMROWS; i++) { cout << setw(4) << val[i][j]; cout << endl; } 3. for (i = 0; i < NUMCOLS; i++) { cout << setw(4) << val[i][j]; cout << endl; } 4. for (i = 0; i < NUMROWS*NUMCOLS; i++) { cout << setw(4) << val[i][j]; cout << endl; }
Create a class string whose private data member is a character array of size 50. Create the constructor in default constructor assigns the null into the string. In parameter, constructor assigns the string which is passed by the user. Overload the '+'operator to add two string values. Overload the =' to compare to strings. Create its disp( function to display the string.