1. After imputation of nulls with mean what is the average value of the compressive strength in concrete?
2. The feature that has a moderately strong relationship with compressive strength in concrete is?
3. Standardize the dataset using standardscaler(), split the dataset into train and test of proportions 70:30 and set the random state to 1. Build a Linear Regression Model on the data and the resulting r-squared value is between which range?
You work in a printing office that the machine there can print documents in different colors. It gets an integer number between 1 to 7 and prints the documents in rainbow colors, as shown in the following table:
Number Matched Color
1 Violet
2 Indigo
3 Blue
4 Green
5 Yellow
6 Orange
7 Red
Design an algorithm and write a C++ program to do the following:
Sample Run
Enter a number between 1 and 7: 2
You have selected number 2 which is orange.
Output File "color.txt"
You have selected number 2 which is orange.
Here are the numbers and match colors:
1 ------- Violet
2 ------- Indigo
3 ------- Blue
4 ------- Green
5 ------- Yellow
6 ------- Orange
7 ------- Red
Exercise
25. Create an application that calculates a customer's water bill for the Canton Water Department. The user will enter the current meter reading and the previous meter reading. The application should calculate and display the number of gallons of water used and the total charge for the water. The charge for water is $1.75 per 1000 gallons, or 0.00175 per gallon. However, there is a minimum charge of $19.50. In other words, every customer must pay at least $19.50. Display the total charge with a dollar sign and two decimal places. Use the following names for the solution and project, respectively: Canton Solution and Canton Project. Save the solution in the VbReloaded2015\Chap04 folder. Change the form file's name to Main Form.vb. Create the interface and then code the application. Save the solution and then start and test the application. Close the solution. (1-4)
Will try to send the pictures that go with this. This is the 2nd part of my question.
Lab6: Canton Water Department
Lab6 requires you to create the following:
Your lab needs to include the following:
I will send the rest in another question
need to write a dynamic program for solving the following problem.
1) input is two strings (sequences)
2) need to find longest non-consecutive common subsequence ( let us call it light common subsequence)
3) the sequences need to be read from left to right
4) the letters need not be alternating strictly but should not be consecutive
examples:
examples: - problem: 1
correct_answer: 5
s: "czdslvrqrutcalisavrieb"
t: "fzprthfmovdtrijrxntc"
- problem: 2
correct_answer: 6
s: "olfxisnyrwxereydrqgftyxpvuxnwp"
t: "xkmnloaorrawywiubyregf"
- problem: 3
correct_answer: 4
s: "xllmkgfnsyyxtlisthxiyjqryhulp"
t: "yncwgapjocazejndvqrigphmtxkf"
You work in a printing office that the machine there can print documents in different colors. It gets an integer number between 1 to 7 and prints the documents in rainbow colors, as shown in the following table:
Number Matched Color
1 ----- red
2 ----- orange
3 ----- yellow
4 ----- green
5 ----- blue
6 ----- indigo
7 ----- violet
Design an algorithm and write a C++ program to do the following:
You work in a printing office that the machine there can print documents in different colors. It gets an integer number between 1 to 7 and prints the documents in rainbow colors, as shown in the following table:
Number Matched Color
1 ------- red
2 ------- orange
3 ------- yellow
4 ------- green
5 ------- blue
6 ------- indigo
7 ------- violet
Design an algorithm and write a C++ program to do the following:
Create a class Author whose attributes are: name, email, gender and books. Author constructor initializes the values
of name, email, gender and books. Define a static variable, method and block, and use this keyword in your code.
A program to declare a class student whose data members are student name,marks of 3 subject,total and average and two static data members pass and fail and members functions are-
1 get()to get student name and marks of three subject
2 calc() to Calculate total and avg and also calculate how many student are pass and fail (avg>=40,pass otherwise fail)
3 disp()to display all data members except pass and fail
4 result ()to display total no.of pass and fail student it is a static function
In main(),get details 5 students
Write the code to test if the variables num1 and num2 are not the same