Write a program that reads several lines of text from a text file named “data.txt” and prints a table indicating the number of one-
letter words, two-letter words, three-letter words, etc. appearing in the text. For example, if the text file contains Whether ‘tis nobler in the mind to suffer the output should be:
Word Length. Occurrences
1 0
2 2
3 2
4 2 (including ‘tis)
5 0
6 2
7 1
Give two examples of alloys along with their compositions and uses
create a c++ program with a function named display that displays 10 random words input by user using array. It should accept spaces and don’t accept numbers. If numbers were input it should say “INVALID INPUT”
II. Determine the given of the problems below and formulate the null and alternative hypothesis both in words and symbols. Write your answer in your notebook. Please follow the format in the examples.
2. A study was conducted to determine the marrying age of teachers. It was found out that the mean marrying ager of teachers is 30 years old. Fifteen teachers were surveyed randomly and found that their mean marrying age was 33 years old with a standard deviation of 5 years. Use 10% level of significance to test the hypothesis and assume that the population is normally distributed.
3. A study was conducted to determine the marrying age of teachers. It was found out that the mean marrying ager of teachers is 30 years old. Fifteen teachers were surveyed randomly and found that their mean marrying age was 33 years old with a standard deviation of 5 years. Use 10% level of significance to test the hypothesis and assume that the population is normally distributed.
1. Evaluate each of these expressions.
a) 1 1000 ∧ (0 1011 ∨ 1 1011)
b) (0 1111 ∧ 1 0101) ∨ 0 1000
c) (0 1010 ⊕ 1 1011) ⊕ 0 1000
d) (1 1011 ∨ 0 1010) ∧ (1 0001 ∨ 1 1011)
A force 1500N exists between two identical point charges separated by a distance of 30cm. Calculate the magnitude of the two point charges.
In the class of Statistics, there are 75 students in total out of which 55 male, 20 female students. 10 students need to be selected for the occasion of freshers' reception.
a. Find out the mean and standard deviation of the binomial distribution.
write a program that finds a number of elements in an array without using built-in features
A charged oil-drop of radius 1.3×10-⁶ m is prevented from falling under gravity by the vertical field between two horizontal plates charged to a difference of of 8340V. The distance between the plates is 16 mm and the density of oil is 920 kgm-³. Calculate the magnitude of the charge on the drop.
[Take g = 10 ms-²]
Instructions:
Given code:
#include <iostream>
#include <cstring>
using namespace std;
int main() {
// NOTE: Do not edit this
char location[100] = "CodeChumIsLoveAndProgrammingAsWellYey";
}
Example:
Enter the address: 1
Place at index 1 is o