Questions
PLEASE ANSWER IN C++ Given the starting point in a maze, you are to find and...

PLEASE ANSWER IN C++

Given the starting point in a maze, you are to find and mark a path out of the maze, which is represented by a 20x20 array of 1s (representing hedges) and 0s (representing the foot-paths). There is only one exit from the maze (represented by E). You may move vertically or horizontally in any direction that contains a 0; you may not move into a square with a 1. If you move into the square with an E, you have exited the maze. If you are in a square with 1s on three sides, you must go back the way you came and try another path. You may not move diagonally. For this program, use can ONLY use a single linked list.

Program Requirements: Your program should use single linked list ONLY for finding the path. Input of program: Input is the following array of characters (1s, 0s, and E) from an ASCII text data file (maze.txt); as follows:

E0001110000000100100

11100011101110001111

11111000101000111000

00001110101100010010

01011000101111000110

00001110000110011110

11011100110110111000

00011110110111111101

01011011110110100001

01000000000110110111

11011011010010000000

01010010011000101011

01111000101110101110

00001110000111011001

01101011101101000011

11000110100111011010

01110000100100110011

11010111110110000000

01110100011000111110

00011001000011100010

Each data line consists of one row of maze. Starting points (i.e. a row, column pair) in the maze will be input from the keyboard.

Output of program: Echo print the maze complete with numbered rows and columns prior to asking the user for their starting point. For each entry into the maze, print the complete maze with a S in the starting point followed by the words ‘I am free’ if you have found a path out of the maze or the words ‘Help, I am trapped’ if you cannot. Your output could be in two formats: Print the path (by using a series of pluses (+)) you took through the maze should one be found OR Print the path as a single linked list. A program heading in the following format should begin your program:

// Program Name

// <your name>

// <date>

In: Computer Science

One of the major challenges associated with widespread adoption of social media is online deception. You...

One of the major challenges associated with widespread adoption of social media is online deception. You are going to discuss the following two issues related to online deception.

1) Various types of deception in social media and illustrate them with real-world cases.

2) Strategies and clues you may use to detect and verify online deception.  

In: Computer Science

1. How are different fonts set with Java GUI programs? What are font statistics? 2. What...

1. How are different fonts set with Java GUI programs? What are font statistics?

2. What is meant by drawing a string with Java and how is this done?

In: Computer Science

What is the difference between statically assigned IPs, reserved IPs, self-assigned IPs, and dynamically assigned IPs?...

  1. What is the difference between statically assigned IPs, reserved IPs, self-assigned IPs, and dynamically assigned IPs? Give specific examples of when you would use or see each.

In: Computer Science

Respond to the following in a minimum of 175 words: An incident response plan (IRP) is...

Respond to the following in a minimum of 175 words:

An incident response plan (IRP) is a set of procedures to help an organization detect, respond to, and recover from security incidents.

List the roles and responsibilities that are included in an IRP.

Discuss how your organization (from Week 1) may respond to at least one cyberattack. The organization should have a response in accordance with the IRP.

I had chosen Health care

In: Computer Science

Exercise 1: Write a program that converts a number entered in Roman numerals to decimal. Your...

Exercise 1:

Write a program that converts a number entered in Roman numerals to decimal. Your program should consist of a class, say, Roman. An object of type Roman should do the following:

  1. Store the number as a Roman numeral.
  2. Convert and store the number into decimal.
  3. Print the number as a Roman numeral or decimal number as requested by the user.

The decimal values of the Roman numerals are:

M 1000

D 500

C 100

L 50

X 10

V 5

I 1

  1. Your class must contain the method romanToDecimal to convert a Roman numeral into its equivalent decimal number
  2. Test your program using the following Roman numerals: MCXIV, CCCLIX, and MDCLXVI.

In: Computer Science

(c++)You will be given a data file containing data for 10 students. The format is as...

(c++)You will be given a data file containing data for 10 students. The format is as follows - grades are double precision numbers:

Line 1: Header Information

Line 2: Student Full name

Line 3: Student ID

Line 4: testgrade_1 testgrade_2 testgrade_3 testgrade_4 testgrade_5

Line 5: Student Full name

Line 6: Student ID

Line 7: testgrade_1 testgrade_2 testgrade_3 testgrade_4 testgrade_5

Line 8: Student Full name

Line 9: Student ID

Line 10: testgrade_1 testgrade_2 testgrade_3 testgrade_4 testgrade_5

Etc.

  1. Read the data into appropriate arrays. You do not need to create a dynamic array.

  2. Determine the average of all the grades for each test, and print the test number then the name, student id, and grade for all students who fall below that average.

  3. Determine the average of all the grades for each student.

  4. Determine which student has the highest average grades - print their name and their average

  5. Determine which student has the lowest average grades - print their name and their average

Student Learning Outcomes:

  • Creating and using functions

  • Creating and using non-dynamically allocated arrays - 1-Dimensional and/or 2-Dimensional

  • File input

  • Style

    • Variable Naming

      • Proper variable and function naming (not uppercase to start, descriptive of purpose)

      • Proper constant naming (all capital letters)

    • Comments

      • Programmer name, date, purpose

      • Useful, descriptive comments about program procedures

      • Useful, descriptive comments about function purpose, inputs, and outputs

In: Computer Science

1. A finite sequence of letters is called a palindrome if it reads the same forward...

1. A finite sequence of letters is called a palindrome if it reads the same forward or backward. Devise an algorithm for determining whether or not a string of n letters is a palindrome. Write your algorithm using the the same sort of pseudocode used in the text. Your algorithm should start with procedure palindrome (a1,a2,...,an: lowercase letters) Your procedure should return the value 0 if the string is a palindrome, and the first integer i such that ai 6=an−i+1 if the string is not a palindrome.

2. Show all steps taken by your algorithm if you input the string the string abcdba. What number does the procedure return?

3. Show all steps taken by your algorithm if you input the string the string azyza. What number does the procedure return?

In: Computer Science

#1 a. When to use an Interface vs when to use an abstract class. For each...

#1 a. When to use an Interface vs when to use an abstract class. For each “when” provide extended example(s) (with class/interface codes). b. Suppose you have an interface Moveable. Think of some interface that can extend it. Implement this two interfaces. (java oop)-> laboratory work

In: Computer Science

Why are e-markets more efficient than traditional markets? What are the main functions of traditional and...


  1. Why are e-markets more efficient than traditional markets?
  2. What are the main functions of traditional and e-markets and explain them briefly.
  3. An e-market can either be biased or unbiased. A biased market can be biased towards either the buyers or the sellers. Explain the differences.
  4. What are the disadvantages of a biased market?
  5. Give an example of how disadvantages you mentioned in the former question have an effect on the probability of success of an e-market place.
  6. Which three factors contribute to the success of e-markets? Give one example for each factor.
  7. What products are most likely to be trades successfully through an e-market place: commodities or specialty goods. Explain why and give one example of both types of goods.
  8. Explain how the element of trust has changed in an e-market perspective compared to a traditional market? Use the following terms in your answer:
    1. Quality of information
    2. Information security
    3. Geographic location
    4. Partnerships

In: Computer Science

As we move closer to choosing tools for data mining it is important to understand what...

As we move closer to choosing tools for data mining it is important to understand what you intend to do with a specific tool.

a. In your own words, describe why you would choose a tool to:

- Predict unknown or future value

- Describe with interesting, interpretable patterns

b. In your own words, briefly describe these data mining techniques:

- Regression (predictive)

- Association Rule Discover (descriptive)

- Classification (predictive)

- Clustering (descriptive)

In: Computer Science

Match each function type correctly. Question 1 options: In this parameter type, the memory location of...

Match each function type correctly.

Question 1 options:

In this parameter type, the memory location of the variables from the invoking function are passed to the called function.

In this parameter type, a copy of the variables from the invoking function are passed to the called function.

1.

Pass By Value

2.

Pass By Reference

In: Computer Science

C++ UNIX car.txt 0001|Mercury|LeSabre|2005|Brown|11000|2019-09-01 0002|Chevrolet|Aveo|2013|Blue|12000|2019-09-02 0003|Datsun|240Z|1979|Orange|13000|2019-09-03 0004|Ford|Galaxie|1964|Black|14000|2019-09-04 0005|Porsche|Boxster|2014|Green|15000|2019-09-0 #i

C++ UNIX

car.txt

0001|Mercury|LeSabre|2005|Brown|11000|2019-09-01
0002|Chevrolet|Aveo|2013|Blue|12000|2019-09-02
0003|Datsun|240Z|1979|Orange|13000|2019-09-03
0004|Ford|Galaxie|1964|Black|14000|2019-09-04
0005|Porsche|Boxster|2014|Green|15000|2019-09-0

#include <fstream>
#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main()
{
  
   const int RECORDS = 42;
   ifstream reader("car.txt");
   if(!reader) {
       cout << "Error: cannot open input file" << endl;
       return -1;
   }
   string item[RECORDS];
   int i = 0;
   while(!reader.eof()) {
       if((i+1) % 7 == 0)
           getline(reader,item[i++],'\n');
       else
           getline(reader,item[i++],'|');
   }
   i = 0;
   while(i < RECORDS) {
       cout << "(1) carID= " << item[i++] << endl;
       cout << "(2) carManufacturer= " << item[i++] << endl;
       cout << "(3) carModel= " << item[i++] << endl;
       cout << "(4) carYear= " << item[i++] << endl << endl;
       cout << "(5) carColor= " << item[i++] << endl << endl;
       cout << "(6) carPrice= " << item[i++] << endl << endl;
       cout << "(7) carInventoryDate= " << item[i++] << endl << endl;   
   }
   reader.close();
   return 0;
}

this is my code to read that text file.

and output should be

(1) carID=0001
(2) carManufacturer=Mercury
(3) carModel=LeSabre
(4) carYear=2005
(5) carColor=Brown
(6) carPrice=11000
(7) carInventoryDate=2019-09-01

and so on.

but my output is

(1) carID= 0001
(2) carManufacturer= Mercury
(3) carModel= LeSabre
(4) carYear= 2005

(5) carColor= Brown

(6) carPrice= 11000

(7) carInventoryDate= 2019-09-01

like this. I don't know why there is space between 4, 5, 6, 7

please help me to fix

Thank you

In: Computer Science

make a 4x4 tic tac toe in javascript (X is the user) (O is the computer)

make a 4x4 tic tac toe in javascript (X is the user) (O is the computer)

In: Computer Science

Programming in R test1 [1] 62.21030 57.60602 86.21137 84.73354 83.74019 69.68914 84.57337 68.31329 74.84393 77.75101 69.23417...

Programming in R

test1

[1] 62.21030 57.60602 86.21137 84.73354 83.74019 69.68914 84.57337 68.31329 74.84393 77.75101 69.23417 66.95640
[13] 68.56414 71.97554 63.92802 74.36488 72.45757 72.37171 72.23253 86.86378 91.33591 60.92220 94.63742 78.92828
[25] 85.36320 65.42284 77.67914 74.72229 66.06849 66.18031

test2

[1] 70.92537 61.84501 79.35110 66.56921 85.24835 71.78693 77.12057 82.20876 71.54209 66.11271 62.46592 79.36359
[13] 73.91162 77.18452 71.46808 72.78128 82.57056 78.34531 59.93903 64.00577 72.96255 75.81221 69.76166 68.04771
[25] 64.12077 84.65762 64.87694 80.51515 78.21864 79.27847

The two vectors above (test1 and test2) represent exam scores from two different classes of size 30 (taught by two different teachers). If one class is scoring significantly higher than the other, it could be interpreted that one teacher is more effective than the other.

a. Find the mean test score for each class. Which class did better, based on means? Would you say they did significantly better?

b. Create comparative (side-by-side) boxplots in R for the two classes. Based on these, do you believe one teacher is more effective than the other? Significantly more effective?

c. Create comparative density plots for the two small classes on the same set of axes (you can use par(new=TRUE)) and make sure xlim and ylim are the same). Based on these, do you believe one teacher is more effective than the other? Significantly more effective?

d. Perform a two-sample t-test (one-tailed) to see if there is a difference in the population means for the two classes. Based on these, do you believe one teacher is more effective than the other? Significantly more effective? Significant in what sense?

In: Computer Science