Write a C++ program that creates a word-search puzzle game where the user should find the hidden
words in a square array of letters. Your program should first read from the user their choice for the
game: a) easy, b) medium, c) hard, d) exit the game. If the user selects easy, then the 6x6 puzzle,
shown in Figure 1, will be generated and displayed to the user. If the user selects medium, then the
14 x 14 puzzle shown in Figure 2 should be generated and displayed and lastly, if the user selects
the hard choice, the program should generate a random puzzle, filling the square array of 20 x 20
using random characters/words.
Then your program should repeatedly read from the user, a word to be searched for in the puzzle,
the row and column number where the word starts from and which orientation to search for. The
words can be searched vertically (top to bottom), horizontally (left to right), diagonally (upper left
to lower right) and diagonally (upper right to lower left). The program should check if the column
and row number given by the user are inside the puzzle (array) boundaries, otherwise should display
an error message and ask the user to enter another position. For each word the user inputs, the
2
program should display whether the word was found or not. The program should stop reading
words when the user will press “X” and then the total number of found words will be displayed to
the user.
The program should repeatedly display the game menu until the user will select to exit the game

Answers

Answer 1

C++ program to create a word-search puzzle game. #include <iostream> #include <cstring> using namespace std; int main() { char input; cout << "Choose.

What is program technology?

Any technology (including, without limitation, any new and practical process, method of manufacture, or composition of matter) or proprietary material developed or first put into use (actively or constructively) by either Party in the course of the Research Program is referred to as "Program Technology."

A 33 board with 8 tiles (each tile has a number from 1 to 8) and a single empty space is provided. The goal is to use the vacant space to arrange the numbers on the tiles so that they match the final arrangement. Four neighboring (left, right, above, and below) tiles can be slid into the available area.

Therefore, C++ programs create a word-search puzzle game. #include <iostream> #include <cstring>

Learn more about the program here:

https://brainly.com/question/11023419

#SPJ1


Related Questions

How do you read UML diagrams? for java code

Answers

A class diagram in the Unified Modeling Language (UML) is a form of static structure diagram that illustrates a system's classes, properties, operations, and relationships between objects to explain the structure of the system.

What is the system?

A system is a group of moving or interrelated elements that act according to a set of rules to form a unified whole. A system, surrounded and influenced by its situation, is described by its boundaries, structure, and function and shown in its functioning. Systems are the subjects of study of systems theory and other schemes sciences.

Right-click a package in the Project tool window for which you wish to generate a diagram, then choose Diagrams | Show Diagram (Ctrl+Alt+Shift+U). Select Java Class Diagram from the list that appears. A UML diagram for classes and their dependents is produced by IntelliJ IDEA.

Therefore, A class diagram in the Unified Modeling Language (UML) is a form of static structure diagram that illustrates a system's classes

Learn more about the system here:

https://brainly.com/question/19843453

#SPJ1

Without using parentheses, enter a formula in C4 that determines projected take home pay. The value in C4, adding the value in C4 multiplied by D4, then subtracting E4.

HELP!

Answers

Parentheses, which are heavy punctuation, tend to make reading prose slower. Additionally, they briefly divert the reader from the core idea and grammatical consistency of the sentence.

What are the effect of Without using parentheses?

When a function is called within parenthesis, it is executed and the result is returned to the callable. In another instance, a function reference rather than the actual function is passed to the callable when we call a function without parenthesis.

Therefore, The information inserted between parenthesis, known as parenthetical material, may consist of a single word, a sentence fragment, or several whole phrases.

Learn more about parentheses here:

https://brainly.com/question/26272859

#SPJ1

JAVA PROJECT USING ( WHILE LOOP )
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving right 1 position.

Bubble 1 and 2 are moving left 1 position.

Bubble 1 and 2 are moving left 1 position.

Bubble 1 and 2 are moving left 1 position.

This is pass 2.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving left 1 position.

Bubble 1 and 2 are moving left 1 position.

This is pass 3.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving left 1 position.



This is pass 4.
Bubble 1 is not moving.
Bubble 2 is not moving.

Answers

Explanation:

so, what's the question/problem ?

you want to know where the bubbles are after all 4 passes ? right at the original position.

you want to know, how such a while loop could look like ?

int i = 3;

// outer count-down to limit the passes

while (i >= 0) // making 4 passes

{

int j = i;

// inner count-down to limit the right moves

while (j > 0)

{

move(bubble1, right, 1);

move(bubble2, right, 1);

j = j - 1; // count-down

}

j = i;

// inner count-down to limit the left moves

while (j > 0)

{

move(bubble1, left, 1);

move(bubble2, left, 1);

j = j - 1; // count-down

}

i = i - 1; // outer count-down

}

is the ability of a system to grow as the volume of users increases.

Answers

the answer of this definition is Scalability

Answer:

scalability

The ability of a computer application or product (hardware or software) to continue to function well when it (or its context) is changed in size or volume in order to meet a user need. Typically, the rescaling is to a larger size or volume. The rescaling can be of the product itself (for example, a line of computer systems of different sizes in terms of storage, RAM, and so forth) or in the scalable object's movement to a new context (for example, a new operating system).

Regarding to the ethical consideration of technology, what are the challenges of big data analytics, Artificial intelligence, and internet of things

Answers

Privacy and surveillance, bias or discrimination, and perhaps the philosophical question of the role of human judgment are among the legal and ethical challenges that society faces as a result of Artificial Intelligence (AI).

The most critical ethical concerns that require further examination are privacy rights, data quality, and algorithm fairness in Big Data, Artificial Intelligence, and Machine Learning.

When vendors obtain private customer information and are not upfront about how they utilize the data, ethics becomes an issue. Vendors must also safeguard such information. When corporations or bad actors may extract personal information from gathered data and utilize it for malicious purposes, IoT, ethics, and privacy become inextricably linked.

What exactly is ethics?

Ethics, often known as moral philosophy, is a philosophical field that "involves systematizing, defending, and advocating conceptions of good and bad action." The field of ethics, like aesthetics, is concerned with considerations of worth; together, these subjects compose the branch of philosophy known as axiology.

Ethical standards include rights standards such as the right to life, the right to be free from harm, and the right to privacy. Such ethical standards are adequate because they are supported by consistent and well-founded reasons.

Learn more about Ethics:
https://brainly.com/question/11992384
#SPJ1

Suppose, you have to develop a system for a garments owner. He had two garments located in Mirpur and Savar. Now for financial problems, he dosed one and now he has one garments located in Savar. There are three types of clothing in the system- summer clothing, winter clothing and spring clothing. Summer clothing is made out of cotton and has an average weight of 60 grams. Winter clothing has an average weight of 95 grams and is made out of wool. Silk is used to make spring clothing, which has an average weight of 75 grams.
Now, using appropriate design pattern(JAVA), create a Garments class from which client code can request clothing by mentioning type of fabrics or by mentioning the name of season.

Answers

Here is the samle code for a Garments class from which client code can request clothing by mentioning type of fabrics or by mentioning the name of season.

public abstract class Garments

{

private String size;

private String color;

private String fabric;

public Garments(String Size, String Color)

{

   this.size = size;

   this.color = color;

}

public String getSize()

{

   return this.size;

}

public String getColor()

{

   return this.color;

}

public String getFabric()

{

   return this.fabric;

}

What is Class in Programming?

A class is a fundamental building block in object-oriented programming. It is a template that describes the data and behavior associated with the instantiation of a class. Instantiating a class means creating an object (variable) of that class that can be used to access the class's member variables and methods.

A class is also known as a logical template because it is used to create objects that share common properties and methods.

An Employee class, for example, may contain all of the employee details in the form of variables and methods. When the class is instantiated, that is, when an object of the class (say e1) is created, we can access all of its methods and properties.

To learn more about Class in Programming, visit: https://brainly.com/question/14078098

#SPJ1

Can anyone help me in this question pls?...

Answers

Your characters need to be at least

Ned has presented you with the following table. The table is for a project that wants to compare nicknames people use in videogames (“handles”) with the ages of the player. There are hundreds of rows in the table, and the table will be widely shared. Propose three distinct changes Ned could make to improve the quality of the table’s presentation and make it more useful, and explain how or why the changes would improve the table.

An Excel spreadsheet is displayed. The column A represents name values (ex: A1 value is "name", A2 value is "Stan", A3 value is "Peggy", A4 value is "Dan".). The column B represents age values (B1 value is "age", B2 value is "15", B3 value is "18", B4 value is "12".). The column C represents years playing value (C1 value is "years playing", C2 value is "5", C3 value is "1", C4 value is "2".). The column D represents handle value (D1 value is "handle", D2 value is "IStanforJustice", D3 value is "Ace4Life", D4 value is "LiketobuytheWorld".). E is represented as an empty column with some of D's handle values overflowing over E's cells.

Answers

The distinct changes that Ned could make to improve the quality of the table’s presentation and make it more useful are:

The values (figure) should be place in the rows.The names (all) should be place in the column.Like terms should follow each other in the column so that there will be no mix up.

Where can I use Excel?

Excel is most frequently utilized in professional contexts. It is utilized, for instance, in operations management, performance reporting, human resource management, and business analysis. Excel uses a sizable group of prepared cells to arrange and edit data as well as perform mathematical operations.

Note that Microsoft created the spreadsheet application. Excel allows you to perform mathematical operations and arranges data in columns and rows. Windows, macOS, Android, and iOS are all supported. The first version was released in 1985 and has undergone numerous alterations since then.

Hence, starting Excel Presentation made easy includes:

Getting online template to use. Give your worksheets proper names.Clarify your header and title.Font dos and don'ts. ...Make room so you have breathing room, etc.

Learn more about excel presentation from

https://brainly.com/question/24749457
#SPJ1

Case Study: Let's consider you are a Pentester, and you have now the task to perform a penetration test, both for intrusion detection and prevention. Consider any type of attack or intrusion, for example, a man-in-the-middle attack or SQL injection, and perform the penetration test together or individually for intrusion detection and prevention, employing 7 phases of penetration testing.

Guideline: You can assume that an intrusion detection and prevention mechanism is already implemented, however, you have to highlight or mention that mechanism, and perform the penetration testing.

Answers

Highlighting the points on the mechanism, penetration testing:

How to perform penetration testing for intrusion detection?

The following exercises are part of the security analyst exercises and intrusion detection system penetration testing:

Snort Intrusion Detection Using KFSensor Honeypot IDS for Intrusion Detection,

A lightweight intrusion detection tool called Snort logs and examines packets as they pass through the network. Snort compares the incoming packets to the user-written rules and generates alerts if any matches are discovered.

KFSensor is a Windows honeypot and an intrusion detection system in one. The term "honeypot" refers to its goal of attracting and identifying all network hackers. It achieves this by simulating a vulnerable system and disguising itself as a server.

So, the mechanisms are achievable by simulating system and identifying it as a server

Hence to conclude Intrusion detection systems are performed  using penetration testing

To know more on penetration testing follow this link:

https://brainly.com/question/28412839

#SPJ1

How can I round to 3 decimal places in python?

Attached is my code. Say I enter 25 for the feet per second prompt.

This is the output.

0.45719999999999994 kilometers per min

I want that number rounded to 3 decimal places.

def ftsecTokmin(x):
return x*0.018288

n = float(input("Enter the speed in feet per second: "))
print(ftsecTokmin(n), "kilometer per min")

Answers

To round to 3 decimal places in python, you need to write the code as follows:

n = float(input("Enter the value of n in ft/s: "))

def fsec_to_kmminn(n):

   return (0.018288 * n)

print("speed_in_kmmin = ", round(fsec_to_kmminn(n),3))

Output: 0.457

Explain the python programming language.

High-level, all-purpose programming languages like Python are available. With the usage of extensive indentation, its design philosophy places an emphasis on code readability. Garbage collection and dynamic typing are features of Python.

Python is a general-purpose language, which means it may be used to make many various types of applications and isn't tailored for any particular issues.

It supports a variety of programming paradigms, including structured, functional, and object-oriented programming. Building websites and applications, automating processes and performing data analysis all frequently use Python.

Solution Explanation:
You can use the global round function to round up numbers to a decimal place. In a simple example, it can be used as

num = 20.4454

rounded3 = round(num, 3)

# to 3 decimal places

print(rounded3)

# 20.445

Here in the program mentioned in the question, to get three decimal places we have to add the function round in this way, print("speed_in_kmmin = ", round(fsec_to_kmminn(n),3)) to get the desired result.

To learn more about Python, use the link given
https://brainly.com/question/26497128
#SPJ1

Write a loop that continually asks the user what pets the user has until the user enters stop, in which case the loop ends. It should acknowledge the user in the following format. For the first pet, it should say You have one cat. Total # of Pets: 1 if they enter cat, and so on.

Sample Run
What pet do you have? lemur
What pet do you have? parrot
What pet do you have? cat
What pet do you have? stop
Sample Output
What pet do you have? lemur
You have one lemur. Total # of Pets: 1
What pet do you have? parrot
You have one parrot. Total # of Pets: 2
What pet do you have? cat
You have one cat. Total # of Pets: 3
What pet do you have? stop

Answers

Answer:

int counter = 0;
String userInput = "";
while (userInput != "stop") {
print "What pet do you have? ";
userInput = readInputLine();
if (userInput != "stop" ){
counter = counter + 1;
print "\nYou have one ";
print userInput;
print ". Total # of Pets: ";
print counter;
}
}

Explanation:

not sure what programming language you use, therefore the answer is pseudocode but it should give you an idea how to implement a piece of code for this problem.
Also, from the way you described the exercise I'm not sure if you always are supposed to reply with "you have one" + the pet or if you should count how often the same pet was entered.

The university student registration system is unable to cope with the high volume of telephone calls received at registration time. An online student registration system needs to be developed.


1. Perform a system investigation and analyze the system to determine the requirements (operational, functional, hardware, software, input, process, output, etc.) for such a system. (everything required in written no software will use)

Answers

The university student registration system is unable to cope with the high volume of telephone calls received at registration time. Among others, busy signals and long distance charges are inherent problems of the telephone registration system.

An online student registration system needs to be developed. In addition, students on campus, off campus, in-state, out of state, and out of country can easily and inexpensively take advantage of many of the services provided by the Office of the Registrar, which today require users to be on campus during business hours.

What is System investigation

System Investigation is the process of finding out what the system is being built to do and if the system is feasible. I

t is the process of finding out what the system is being built to do and if the system is feasible. This will help gain an understanding of the technical resources of the organization and their applicability to the needs of the system.

System Analysis and Design - Overview:

Systems Analysis:

It is a procedure for gathering and analyzing data, determining the issues, and breaking down a system into its constituent parts.

System analysis is done to investigate a system or its components in order to pinpoint its goals. It is a technique for solving problems that makes the system better and makes sure that all of its parts function effectively to serve their intended purposes.

Analysis lays out the system's proper course of action.

Systems Design:

Planning a new business system or replacing an existing system involves defining its modules or components to meet the necessary requirements. Prior to making any plans, it is essential to have a thorough understanding of the current setup and decide how to make the most effective use of computers.

To know more about System investigation, visit: https://brainly.com/question/14682150

#SPJ9

Write a program to find 40%, 50%
and 60% of the input number.

Answers

inp = int(input("Enter a number: "))

print("%40 of this number is",(2*inp)/5,"\n%50 of this number is",inp/2,"\n%60 of this number is",(3*inp)/5)

Write a client program and server program. The server uses a socket connection to allow a client to supply a filename and the server will send the file contents to the client or an error message if the file does not exist. The client will create a new file with the same contents. The client will supply the filename "input.txt" to the server and create as it's output "output.txt". Don't ask the user for these names. These files will be located in the top level folder of your project.. The Server sends whatever file the Client requests. Don't put "input.txt" in the Server. The client must get the contents from the Server. It must not read input.txt directly.
Do not use a path name when opening the files. I'll have it in the folder
2 classes, Server and Client

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that  server uses a socket connection to allow a client to supply a filename and the server will send the file contents to the client or an error message if the file does not exist.

Writting the code:

import java.io.*;

import java.net.*;

class Server { public static void main(String args[]) throws Exception { String fileName; String sentence = "Thank you ! Received your data ..."; ServerSocket welcomeSocket = new ServerSocket(6789); Socket connectionSocket = welcomeSocket.accept(); // Receiving from client BufferedReader inFromClient =new BufferedReader(new InputStreamReader (connectionSocket.getInputStream())); fileName = inFromClient.readLine(); System.out.println("Filename from server: " + fileName); try { File file = new File(fileName); if (file.exists()) { BufferedReader br = new BufferedReader(new FileReader(file)); String st, out=""; DataOutputStream outToClient=null; while ((st = br.readLine()) != null) { out += st; } outToClient = new DataOutputStream(connectionSocket.getOutputStream()); outToClient.writeBytes(out); } else { System.out.println("The file client requested is not found !"); } } catch (IOException ioe) { System.err.println(ioe); } connectionSocket.close(); welcomeSocket.close(); } }

See more about JAVA at brainly.com/question/12978370

#SPJ1

Write pseudo code that reads 100 numbers and outputs the largest , smallest and
the average of the numbers input.

Answers

Using the knowledge in computational language in pseudocode it is possible to write a code that reads 100 numbers and outputs the largest , smallest and the average of the numbers input.

Writting the pseudocode:

int ave_of_100_numbers(){

int sum = 0;

for(int i = 0; i < 100; ++i){

sum += arbitrary_number;

}

return sum/100;

}

See more about pseudocode at brainly.com/question/18502436

#SPJ1

Hacker Rank - Disk Space Analysis
C# solution for HackerRank's Disk space analysis challenge.
Example
For following array [2, 5, 4, 6, 8] with x = 3, the answer is 4 see below
The chunks would be:
[2, 5, 4] -> min: 2
[5, 4, 6] -> min: 4
[4, 6, 8] -> min: 4

Answers

For following array [2, 5, 4, 6, 8] with x = 3, the answer is 4.

What is C#?

You say "C#" instead of "C-Sharp."

It is an object-oriented programming language made by Microsoft that makes use of the.NET Framework.

C# has origins in the C family and is connected to other widely used languages like C++ and Java.

The first iteration was released in 2002. The most recent version of C#, version 10, was released in November 2021.

What is Disk Space Analysis?

An application called a disk space analyzer, also referred to as a storage analyzer, scans your computer and generates a report listing every file that uses disk space, including videos, saved files, program installation files, and more.

The chunks would be:

[2, 5, 4] -> min: 2

[5, 4, 6] -> min: 4

[4, 6, 8] -> min: 4

(1) In this case we just need to compare current number with prev. found minimum, hence code below

s.Push(space[i] < space[peek] ? i: peek);

The prev. found minimum is NOT part of current chunk

(2) In this case we have to loop through current chunk to find the minimum

s.Push(i);

var j = chunkNum;

var count = 0;

while (count++ < x)

{

  if (space[j] < space[s.Peek()])

  {

      s.Pop();

      s.Push(j);

  }

  j++;

}

(3) Find the maximum between found minimums, thanks to LINQ, it is dead easy

s.Select(c => space[c]).Max();

Learn more about C# click on this link:

https://brainly.com/question/28184944

#SPJ4

The latest web application, using default settings, is currently accepting application programming interface (API) calls over HyperText Transfer Protocol (HTTP). The environment has a moderate key management system. Even with basic server security, the API connection is vulnerable to which of the following?

Answers

The latest web application, using default settings, the API connection is vulnerable to option A and B:

Key DiscoveryImproper Error handlingDescribe an API connection.

Application Programming Interface, or API, is a software bridge that enables two applications to communicate with one another. You use an API every time you send a text message, check the weather on your phone, or use a social media app like Face book.

Therefore, note that When a user receives an error message that contains information about how a website or application functions, improper error handling has occurred.

Learn more about API connection from

https://brainly.com/question/28090326?source=archive
#SPJ1

Key Discovery

Improper Error handling

Resource exhaustion

Denial of service (DoS)

Amplification?

Suppose we want to put an array of n integer numbers into descending numerical
order. This task is called sorting. One simple algorithm for sorting is selection sort.
You let an index i go from 0 to n-1, exchanging the ith element of the array with
the maximum element from i up to n. Using this finite set of integers as the input
array {4 3 9 6 1 7 0}:
i. Perform the asymptotic and worst-case analysis on the sorting algorithm
been implemented. (AN)10 marks
ii. Write or draw all the iterations in the selection sort process on the
array.(AP)5 marks
iii. Write a java or C++ code implementing the algorithm.

Answers

The following C++ code will display all iterations of the selection sort process on the array:

Step-by-Step C++ Code:

#include <stdio.h>

#include <stdlib.h>

int main() {

int i, tempA, tempB;

  int string2[16] = { 0, 4, 2, 5, 1, 5, 6, 2, 6, 89, 21, 32, 31, 5, 32, 12 };

  _Bool check = 1;

  while (check) {

      tempA = string2[i];

      tempB = string2[i + 1];

      if (tempA< tempB) {

          string2[i + 1] = tempA;

          string2[i] = tempB;

          i = 0;

      } else {

          i++;

          if (i = 15) {

              check = !check;

          }

      }

  }

 return 0;

}

To know more about C++ programming, visit:

brainly.com/question/20339175

#SPJ9

Expectations in ICT as a student

Answers

Expectations in ICT as a student are: Information and communication technologies (ICTs) are an essential part of daily life for students who live in a technologically advanced society. ICTs are made up of the digital systems, peripheral equipment, software, and hardware that make it possible to manage, store, process, and exchange data and information.

What are the Expectations in ICT as a student?

You can increase the effectiveness of data management and processing by learning the necessary programming languages through ICT studies. Students will learn about essential tools, ranging from straightforward applications like Microsoft Excel to more specialized, analytical platforms like ZAP.

Note that ICT strand courses aim to impart information technology knowledge and skills to students. Students will learn how to create programs and webpages as part of the ICT curriculum.

Additionally, this will enable students to improve their animation and illustration abilities, which will help them succeed in creativity.

Learn more about information technology from

https://brainly.com/question/25110079
#SPJ1

What type of attack is occurring when a counterfeit card reader is in use?

Answers

Answer:

input validation vulnerability

Explanation:

usually crafted through a URL and sent to a victim and they open it unknowingly

Explain how and why staying informed about public issues is part of being a responsible citizen.

Answers

Staying informed about public issues is part of being a responsible citizen because information ensures that a citizen acts rightly. Under the law, for instance, ignorance is no excuse. When a person is informed, they act in a way that serves their own interests as well as the best interest of the state.

Who is a responsible citizen?

A responsible citizen obeys all of the country's laws and regulations. They have the right to exercise all fundamental rights and obligations, including voting, paying taxes, and safeguarding the country against corruption.

A citizen's five essential obligations are as follows:

To support and defend the Constitution.Keep up to date on topics impacting your neighborhood.Take part in the democratic process.Obey and respect federal, state, and local laws.Respect others' rights, beliefs, and ideas.Participate in your neighborhood.

Learn more about Citizenship:
https://brainly.com/question/18099945
#SPJ1

Hacker Rank - Disk Space Analysis
C# solution for HackerRank's Disk space analysis challenge.
Example
For following array [2, 5, 4, 6, 8] with x = 3, the answer is 4 see below
The chunks would be:
[2, 5, 4] -> min: 2
[5, 4, 6] -> min: 4
[4, 6, 8] -> min: 4

Answers

For following array [2, 5, 4, 6, 8] with x = 3, the answer is 4.

What is C#?

You pronounce C# as "C-Sharp."

It is a Microsoft-developed object-oriented programming language that utilizes the.NET Framework.

C# is related to other widely used languages like C++ and Java and has roots in the C family.

In 2002, the initial version was made available. In November 2021, C# 10, the most recent version, was released.

What is Disk Space Analysis?

A disk space analyzer, also known as a storage analyzer, is a program that scans your computer and creates a report outlining everything that uses disk space, including videos, saved files, installation files for programs, and more.

The chunks would be:

[2, 5, 4] -> min: 2

[5, 4, 6] -> min: 4

[4, 6, 8] -> min: 4

(1) In this case we just need to compare current number with prev. found minimum, hence code below

s.Push(space[i] < space[peek] ? i: peek);

The prev. found minimum is NOT part of current chunk

(2) In this case we have to loop through current chunk to find the minimum

s.Push(i);

var j = chunkNum;

var count = 0;

while (count++ < x)

{

   if (space[j] < space[s.Peek()])

   {

       s.Pop();

       s.Push(j);

   }

   j++;

}

(3) Find the maximum between found minimums, thanks to LINQ, it is dead easy

s.Select(c => space[c]).Max();

Learn more about C# click on this link:

https://brainly.com/question/20211782

#SPJ4

Prepare an algorithm and draw a corresponding flowchart to complete the sum and product of all prime numbers between 1 and 50

Answers

Using the knowledge in computational language in python it is possible to write a code that Prepare an algorithm and draw a corresponding flowchart to complete the sum and product of all prime numbers between 1 and 50.

Writing the code;    

using Lisp GNU Common Lisp (GCL) GCL 2.6.12  

Distributed under the GNU Public License. See the file COPYING.  

Dedicated to the memory of William Schelter.  

The function bug_report() provides bug reporting information.  

(%i1) primep(45);  

(%o1)  false  

(%i2) primep(11);  

(%o2)  true  

(%i3) primep(31);  

(%o3)  true  

(%i4)  

#!/usr/bin/env luajit

local bit = require("bit")

local band, bxor = bit.band, bit.bxor

local rshift, rol = bit.rshift, bit.rol

local m = tonumber(arg and arg[1]) or 100000

if m < 2 then m = 2 end

local count = 0

local p = {}

for i=0,(m+31)/32 do p[i] = -1 end

io.write(string.format("Found %d primes up to %d\n", count, m))

See more about python at brainly.com/question/12975450

#SPJ1

Describe a scenario in which an object that is not moving has more potential energy than an object that is moving. How does your scenario meet this criteria? Use specific language from the text to explain.

Answers

A scenario in which an object that is not moving has more potential energy than an object that is moving is given below

In order to understand how and why things act the way they do, we use the concept of energy.  You can alter an object's energy by applying a force to it. An object must be accelerated or work must be done with that energy. Energy is referred regarded as a scalar since it lacks direction (as opposed to vectors).

Kinetic energy, potential energy, and energy in springs are other terms we use. It's impossible to grasp or touch energy. It is merely one more tool to aid in our comprehension of the environment. In science, energy is measured in units called joules.

Where does an object have a higher potential energy?

Greater potential energy exists for higher objects with further to fall. The gravitational potential energy of a pair of equal-height objects is greatest for the heavier object.

Note that Position, not motion, determines an object's potential energy. It possesses positional energy. When objects are displaced from their equilibrium positions, the energy that was previously stored within them before being knocked out of equilibrium by chemical reactions, gravity, or elastic rebound is released.

Learn more about potential energy  from

https://brainly.com/question/14427111

#SPJ1

All of the following is true about MS Online/OneDrive apps,
EXCEPT (NOT):
Select one:
O a. Cloud-based apps
Ob.
c.
C.
d.
Watered down version of MS Word, MS Excel, and
MS PowerPoint
Cost the end user money to use
Allows user to keep files on OneDrive or download
to local drive

Answers

All of the following is true about MS Online/OneDrive apps except (not): C. cost the end user money to use.

What is OneDrive?

OneDrive can be defined as a cloud-based storage service and software application synchronization service that is designed and developed by Microsoft, and it was launched by Microsoft on the 7th of August, 2007.

Additionally, OneDrive typically offers to all of its registered customers (Microsoft users) a free amount of storage space (at least 5 gigabytes) that can be used to store various types of documents, share files, and synchronize files across different mobile platforms and other computer-based platforms such as:

WindowsMacOSX-box 360

In conclusion, both MS Online and OneDrive applications are largely free and as such, they do not cost an end user money to use them.

Read more on OneDrive here: https://brainly.com/question/16033855

#SPJ1

What did this command do?
mv ../* .cpp .
(In linux ubuntu)

Answers

Using the knowledge in computational language in linux it is possible to write a code that located in different directories and  files matching that glob exist.

Writting the code:

# REPLACES: mv /data/*/Sample_*/logs/*_Data_time.err /data/*/Sample_*/logs/*_Data_time_orig.err

for f in /data/*/Sample_*/logs/*_Data_time.err; do

 mv "$f" "${f%_Data_time.err}_Data_time_orig.err"

done

# REPLACES: cp /data/*/Sample_*/scripts/*.sh /data/*/Sample_*/scripts/*_orig.sh

for f in /data/*/Sample_*/scripts/*.sh; do

 cp "$f" "${f%.sh}_orig.sh"

done

# REPLACES: sh /data/*/Sample_*/scripts/*_orig.sh

for f in /data/*/Sample_*/scripts/*_orig.sh; do

 if [[ -e "$f" ]]; then

   # honor the script's shebang and let it choose an interpreter to use

   "$f"

 else

   # script is not executable, assume POSIX sh (not bash, ksh, etc)

   sh "$f"

 fi

done

See more about linux at brainly.com/question/1512214

#SPJ1

How do I do this?

Given an integer array nums, return a new array with a length of nums.length*2 where each element in nums appears twice in a row.
doubleElements([2, 3, 5, 4]) → [2, 2, 3, 3, 5, 5, 4, 4]
doubleElements([1, 2, 2, 3, 4, 4, 5, 6]) → [1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6]
doubleElements([1, 2, 3, 4, 5, 6]) → [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6]

I was given the layout of how the code would look but I'm baffled on what to put in the ??? that will return an array that has a duplicate of a previous element.
ex: [2,3] = [2,2,3,3]

public int[] doubleElements(int[] nums){
int[] ans = new int[nums.length*2];
for(int i = 0; i < nums.length; i++){
ans[??] = nums[i];
ans[??] = nums[i];
}
return ans;
}

Answers

import java.util.*;

class DMatrix {

   public static void doubleElements(int[] nums) {

       int[] ans = new int[nums.length*2];

       for(int i = 1; i <= nums.length; i++){

       ans[(2*i)-2] = nums[i-1];

       ans[(2*i)-1] = nums[i-1];

     }

       for(int j=0; j<ans.length;j++) {

           System.out.print(ans[j] + ", ");

       }

   }

   public static void main(String[] args) {

       int[] MyNums = {1,1,3,55,7,7,7,10};

       doubleElements(MyNums);

   }

}

The title specifies the title for the link, true or false?

Answers

The answer of this question is True.

Colton is creating a presentation about Earth Day in PowerPoint Online. He created this slide, but he doesn't think it looks right. How can Colton balance his presentation slide?

A PowerPoint Online slide with the title Earth Day. There is paragraph on the slide that says, Earth Day is an annual event that is celebrated by many on April 22. Earth Day began in the 1970s and has evolved over the years. It is celebrated worldwide to inform others and support environmental protection. There are many different ways that people celebrate Earth Day. They might clean up litter, plant trees, create habitat protection posters, or plant community gardens, for example. It is a great way for communities to come together and protect the planet we live on. There is one image on the slide.

Group of answer choices

Add two more images to the slide

Make the image of Earth smaller and put his text in bullet points

Put his text in bullet points and reduce the amount of text on the slide

Reduce the title and text size

Answers

Since the Colton is creating a presentation about Earth Day in PowerPoint Online, the way that Colton can balance his presentation slide is option C: Put his text in bullet points and reduce the amount of text on the slide

What is a Powerpoint presentation's most crucial section?

The introduction sets the tone for the rest of your presentation, making it the most crucial section. Usually within the first 15 seconds, its main goal is to grab the audience's attention.

Knowing your audience is the first and most crucial aspect of giving a presentation. You'll be well on your way to a successful presentation if you can put yourself in their position and discern what they require. As you prepare your presentation, keep the audience in mind.

Therefore, A great way to make sure that they will keep thinking about your presentation long after it is over is to leave the audience with a challenging question and lastly by reducing the wording, the presentation will look attractive.

Learn more about Slide presentation from

https://brainly.com/question/27363709
#SPJ1

Write an algorithm to find the cube of odd numbers and square of even numbers
from 1 to n where n is provided by user.

Answers

Using the knowledge of computational language in C++ it is possible to write a code that Write an algorithm to find the cube of odd numbers and square of even numbers from 1 to n where n is provided by user.

Writting the code:

#include<stdio.h>

int main (){

int limit;

scanf(“%d”, limit);

for(int i=1,i<=limit,i++){

if(i%2 ==1){

printf(“Cube of %d is %d”,i,i*i*i);

}

if(i%2==0){

printf(“Square of %d is %d”,i,i*i);

}

}

return 0;

}

See more about C++ at brainly.com/question/29225072

#SPJ1

Other Questions
Describe reverend hale at the end of act 2. He has come to salem to ""weed out"" the evil in the town. What is his reaction to the evenings events?. which ways more a quarter pound hamburger on jupiter or a 12 ounce steak on venus An interest survey was taken at a summer camp to plan leisure activities. The results are given in the tree diagram.The tree diagram shows campers branching off into two categories, prefer outdoor activities, which is labeled 80%, and prefer indoor activities, which is labeled 20%. Prefer outdoor activities branches off into two sub-categories, prefer hiking, which is labeled 70%, and prefer reading, which is labeled 30%. Prefer indoor activities branches off into two subcategories, prefer hiking, which is labeled 20%, and prefer reading, which is labeled 80%.What percentage of the campers prefer outdoor activities and reading? 24% 30% 56% 80% If you crossed flies heterozygous for the cy allele, what phenotypes would you find in the adult f1 generation?. what is the answer to 3 2/13 + 7/8 Read the passage.Miss Chavez had always been nice to me. Whenever we were outside at the same time, we would talk about the weather, her cats, or how was doing in school. Miss Chavez had known me since was a baby, but realized that really did not know much about her, except that she was a retired second-grade teacher.What does retired mean as it is used in the passage?A) no longer producedB) no longer workingC) quietly withdrawnD) gone to bed which organization is an independent agency of the federal government that offers managerial and financial help to small businesses An organisms traits are determined by the specific combination of inherited _____. The sum of two numbers is36. Three times the smaller plustwice the larger is 87. Find thetwo numbers. elements combine in three general ways. in blank compounds, electrons are transferred from one element to the other, whereas in blank compounds, electrons are shared between atoms. third, in blank bonding, electrons are shared between a large number of atoms in an electron sea. Patsy sees some candy and attempts to grab it. You put the candy in a drawer that is within her reach, but she acts as if she doesn't know it is there, and makes no move to open the drawer. Based upon this behavior, according to Piaget, Patsy is in the _____ stage of cognitive development. The value of "y" varies directly with "x" andy = -8 when x = 20.Find "y" if x = -4.Now use the value you found for k, in y=kx tosolve for y when x is -4.k=-/y =Reduce to simplest form. What is the bond order for O2-? Why cant we see planetary transits from planets in our solar system other than Mercury and Venus?A. Because only Mercury and Venus orbit closer to the Sun than we do.B. Because no other planets are large enough to see from Earth.C. We can see transits from all of the planets in our solar system.D. Nobody knows; its a complete mystery. What job does lizzie have at the prestigious ashford estate in coming home for christmas?. why do memory cells respond more strongly during a secondary immune response than naive lymphocytes do in a primary immune response? If the price elasticity of supply for pickles is 2 and the price of pickles increases by 10 percent, then the quantity supplied of pickles will increase by responses 0. 2% 0. 2% 5% 5% 8% 8% 12% 12% 20%. Think about the message that chief joseph was trying to convey in ""an indians view of indian affairs. "" what does this message tell you about the cultural values of the nez perc tribe?. The PP&E gross book value at the start of the month is 60,000, and the CAPEX of the month is 12,000. The accumulated depreciation at the start of the month is 25,000; the depreciation expense of the month is 750.The net book value of PP&E calculated from the data above is _____. How many pounds of chamomile tea that cost $9 per pound must be mixed with 8 pounds of orange tea that cost $6 per pound to make a mixture that costs $7.80?