Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

 

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:

  • Prompt user to enter a number between 1 and 7
  • Use selection structure such as if-else or switch to find the color based on the previous table
  • Output the color related to input number. See the sample output.
  • Save the output in a file named “color.txt”.

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: 

  • Exercise 25 - Canton Water Department (p. 225)
  • An example form is provided below
  • Make sure to include Pseudocode or Flowchart for all code Events
  • Include this file in submitted lab folder

Your lab needs to include the following: 

  • Use proper variable types, names, and naming conventions
  • Use proper control (buttons, labels, etc.) names and naming conventions
  • Use the three option statements found in figure 3-23 (p. 136)
  • Do not leave any blank blocks of code or events
  • Use proper access keys and appropriate tab order
  • Include a default button when appropriate
  • Lock form controls
  • Include documentation comments on the main form code, as well as code comments for each major line of code
  • Add the solution folders to a created folder with the following naming convention: CourseNumber_LastNameFirstInitial_LabXX
  • Folders should be compressed

 

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:

  • Prompt user to enter a number between 1 and 7
  • Use selection structure such as if-else or switch to find the color based on the previous table
  • Output the color related to input number. See the sample output.
  • Save the output in a file named “color.txt”.

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:

  • Prompt user to enter a number between 1 and 7
  • Use selection structure such as if-else or switch to find the color based on the previous table
  • Output the color related to input number. See the sample output.
  • Save the output in a file named “color.txt”.

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


LATEST TUTORIALS
APPROVED BY CLIENTS