Practice problems on functions. Write C function(s) to carry out the specified tasks. For each problem, also write the suggested application program(s) that apply the function. (1) Write a function multiPrint(int n, char c) that prints n copies of a character c.

Answers

Answer 1

Answer:

Function:

int fun(int n,char c) // function definition with a two argument in which variable n is a integer type and variable c is a character type.

{

   while(n>0)// while loop

   {

       printf("%c",c); // print statement for character

       n--; // decrease statement to false the loop.

   }

   return 0; //return statement.

}

output:

When the user pass n=5 and c='a', it will prints 5 times 'a' character.When the user passes n=10 and c='t', it will print 10 times 't' character.

Explanation:

Firstly we declare a function of two arguments in which variable n is an integer type and variable c is a character type. Then in the function body, we use while loop from n times iteration because question demands to print n time any character.Then in the loop body, we use a print statement to print a character and a decrease statement to false the loop after a finite iteration.


Related Questions

You learned that properly edited resumes are necessary for making a good impression on a university or a potential employer. Discuss the consequences of submitting a poorly edited and formatted resume while looking for a job or pursuing higher studies.

Answers

Answer:

Resume is the important document for job seekers. As much as the resume is better, there is more chance to grab the job.

If the resume is poor, the employer may not call you for the interview.

Explanation:

Resume is the document that create and impression over the potential employer or university.

If someone have very good hard and soft skills, and does not mention all the skills in resume, then employer could not that skills that you may have. Because your resume is the document that represent you when you are not in front of the employer.  This is the first document, presented that, what  you are and how you are beneficial for the company.

If your resume is poor it may cause that He cannot call you for the interview or not considered for that JOB.

Answer: Something poorly edited or revised can look bad to employers or colleges. It shows that you either rushed or didn’t give enough thought to the work you did. On the other hand, submitting something well polished looks great to business hiring and colleges looking for their next top scholars.

Explanation: PLATO

Of the listed principles, which process would transpire if a user provides a correct username and password?

Answers

Answer:

then the system will automatically grant access to that individual

Explanation:

Regardless of the system, a username and password are credentials used in order to prevent unauthorized access to the system. Therefore if a user provides the correct username and password when prompted, then the system will automatically grant access to that individual, since the account that they have logged in correctly as is already registered as an authorized account within the system.

What should be done on a tablet in order for that tablet to cease all network connections?
Turn on Airplane Mode
Turn off Cellular
Turn off Location services
Turn off Wi-Fi

Answers

To cease all network connections on a tablet, we could do: Turn on Airplane Mode.

Airplane Mode (sometimes referred to as Flight mode) is a feature of tablets, laptops and cellphones that terminates radio-frequency signals which could be transmitting from devices to the internet and communication signal source.  This includes, bluetooth, wireless internet and data connection.

A key feature of an enterprise system is that _________.

a. it is exclusive to small and medium-sized enterprises (SMEs)
b. it employs a database of key operational and planning data that can be shared by all
c. it helps a business function isolate information other functions and other levels of management.
d. it is only used by large organizations

Answers

Answer:

Option B is the correct option to the following question.

Explanation:

Because the following options are the feature of the ERP or Enterprise system, It is an application or software that involves in related to the computer system like accounting, database handling, automation, etc and it is the software of large-scale packages that enables they can controls all the business operations easily.

Other options are incorrect because these are not the features of the Enterprise System.

Answer:

Option (b) is the correct answer.

Explanation:

An Enterprise system (also called as ERP) is used to store all the functional details of the organization. for example, it is used to store the employee data, planing data and customer data for future use. ERP is used by any of the organization either it is small or long organization. It is a software which has the database to store the organization data which is shared among all the managerial-level employee of the organization.

Option b also suggests the same, hence it is correct while other is not because-

Option "a" suggests that it is a combination of the large and small organization but one organizational ERP is different from other organizational ERP.Option c suggests that it distract the business work from the organizational work but it stores all the information.Option d suggests that it is only for the large organization but it is for all types of organization.

Which of the following can help a search engine understand what your page is about?

Answers

Answer:

The title tag  is the correct answer.

Explanation:

In the following question there is some detail that is the options are missing:

The number of images used The title tag The date it was published The total number of words

The title tag of the pages or the websites helps the search engines to know what types of details contained in your pages or the website. The title of the page of the website can help the users and the search engines is what type of information or data on your page. So, that's why the following option is true.

Final answer:

One way a search engine understands what your page is about is through the information provided about the organization that authored the page. This includes details about the organization's purpose or history.

Explanation:

One of the ways a search engine can understand what your page is about is through the information provided about the organization that authored the page and/or site. This includes information about the purpose or history of the organization. For example, if you run a baking blog and your About page provides details about your passion for baking and your experience as a professional pastry chef, a search engine can infer that your page is about baking and related topics.

You have recently completed a review of company network traffic and saw where most of the malware infections are caused by users who visit illicit websites. You would like to implement a solution that will block these websites while scanning all network traffic for signs of malware and block the malware before it enters the company network. Which technology would be the best solution?A) IDSB) FirewallC) UTMD) SIEM

Answers

Answer:

UTM

Explanation:

UTM (Unified Threat Management) is a devices that include firewall, IDS (Intrusion Detection System), SIEM(security information and event management), antivirus and some other devices. The IDS detects intrusions or malicious activity, the firewall blocks unwanted incoming traffic and a SIEM is used for log aggregations.

After configuring a static IP address on a desktop computer, the technician finds that he cannot communicate with other devices on the LAN. He verifies that the IP address and subnet mask are in the correct IP subnet. While the technician is troubleshooting, another user complains that she can no longer access the network. No other users seem to be having any problems. What could be the cause of the problem?

Answers

Answer:

Duplicate IP address

Explanation:

A duplicate IP address means the technician assigned an IP address that is part of the DHCP pool and is already being used by another computer on the network. This causes an IP conflict which denies both users access to the internet. IP conflicts can be resolved by allowing DHCP to assign an IP address to the computer, then once the IP address has been assigned convert it to a static address.

Which of the following statements about BLE is not true? a. BLE has a two-way, push-pull communication capability b. BLE uses less power than traditional Bluetooth or GPS c. Only Apple iPhones can use BLE d. BLE is more accurate than targeting through Wi-Fi triangulation

Answers

Final answer:

Only the statement that 'Only Apple iPhones can use BLE' is false. BLE is available across many platforms and is known for its energy efficiency and communication capabilities.

Explanation:

The question is asking which statement about Bluetooth Low Energy (BLE) is not true. The false statement is c. Only Apple iPhones can use BLE. BLE is a wireless communication technology designed for short-range communication, which is used across various platforms, including iOS, Android, and Windows devices, not just Apple iPhones.

BLE is known for its low power consumption compared to traditional Bluetooth or GPS. It also has two-way, push-pull communication capability and is generally more accurate than Wi-Fi triangulation when it comes to indoor positioning, though the accuracy can depend on the environment and implementation.

Josh is designing a new network infrastructure that will allow unauthenticated users to connect from the Internet and access certain areas. The goal is to protect everything internal while still providing outside access. Josh decided to put the web server on a separate subnet that’s open to public contact. What is this subnet called?

Answers

Answer:

DMZ

Explanation:

DMZ also called delimitarized some r or perimeter network is a form of computer security that with a physical and logical subnetwork of an organization external site accessible by external untrusted users. It is meant to enhance security. It allows the access to the companies private local network copied to the delimitarized zone on the internet and make time to detect and expose breach of network.

The web server administrator at your e-commerce company is concerned about someone using netcat to connect to the company web server to retrieve detailed information. What best describes this concern?

Answers

Answer:

Banner Grabbing

Explanation:

Banner grabbing is a reconnaissance technique to retrieve information about a computer or about a network and its services. This is used by administrators to take inventory of systems and services on their network.

Banner grabbing is used to gain information about a remote server and is intruders sometimes use this technique to retrieve information about remote servers.  divulge software version numbers and other system information on network hosts. This is a technique of getting software banner information. This information may include operating system information, version and certain services and this helps hackers to attack the network. Banner grabbing can disclose vulnerable applications which can result in service misuse and exploitation.

Banner grabbing is done manually or automatically by using tools. Tools commonly used to perform banner grabbing are Telnet, Wget, nmap, zmap and Netcat etc.

Dynamic alliance networks work best in industries: a. that are mature and stable in nature. b. where the coordination of product and global diversity is critical. c. that are characterized by predictable market cycles and demand. d. characterized by frequent product innovations and short product life cycles

Answers

Answer:

The correct answer is D.

Explanation:

An "Alliance Network" is a process that is used very frequently in almost every industry today. It is used in a situation where two or more firms collaborate to manufacture a single end product. It is like the division of labor but on a bigger scale. An example to this can be given as all iPhone screens are produced by a different company and shipped to Apple's factories only to be assembled to form the final end product.

Therefore Dynamic Alliance Networks can be said to work best in industries that have frequent innovations and short product life cycles such as in almost all aspects of technology. Continuing from the Apple example again, they get their screens from another company because they simply do not want to make a lot of investments to produc their own screens because the technology is developing too quickly and the products have short life cycles as stated in the answer. This is why they use Dynamic Alliance Networks to decrease the cost of their products and increase their revenues.

I hope this answer helps.

including the direct and indirect costs, alcohol related collisions cost society _____billion dollars annually.
A.86
B.96
C.106.
D.201

Answers

Answer:

C.106.

Explanation:

Final answer:

The question is about the direct and indirect costs of alcohol-related collisions to society. The answer can vary and is dependent on current statistical data. Always refer to your study materials or instructor for the most current and accurate information.

Explanation:

The question is asking about the cost to society, both direct and indirect, of alcohol-related collisions on an annual basis. These costs can be incredibly high, encompassing not only the immediate expenses related to medical care and property damage, but also long-term costs such as ongoing healthcare needs, loss of productivity, and emotional trauma. There isn't a definitive answer as the costs can vary from year to year. However, for the purpose of this question, please refer to your study materials or your instructor for the correct current statistical data.

Learn more about Costs of Alcohol-Related Collisions here:

https://brainly.com/question/32190337

#SPJ2

You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode. The following pseudocode is not working correctly. What code needs to be corrected? This is the call to the method: displayName() And this is the method: displayName(string name) output "My name is " name returnA. Change the method call to displayName("Sean")
B. Change the method call to displayName(Sean)
C. Change the return statement to return output
D. Change the return statement to return name

Answers

Answer:

Option A: Change the method call to displayName("Sean")

Explanation:

The function displayName(string name) expects an input string to be passed to its parameter name. The original pseudocode that call to the method, displayName() doesn't include an argument within the parenthesis. When the function is called, no value will be passed to the parameter name. This will make the name become undefined.

To fix the problem we need to include a string argument inside the parenthesis when calling the function displayName() so that the string argument (e.g. "Sean") will be passed to the parameter name and then the function will operate on the name and display it.

If userA wants to send a secure message to userB using an asymmetric cryptographic algorithm, which key does userB use to decrypt the message?

Answers

Answer:

userB will use his/her private key.

Explanation:

The steps involved in using asymmetric cryptographic algorithm are as follow:

1. Each user generates a pair of keys to be used for the encryption and decryption of messages.

2. Each user places one of the two keys in a public register or other accessible file. This is the public key. The companion key is kept private.

3. If UserA wishes to send a confidential message to UserB, UserA encrypts the message using UserB's public key.

4. When UserB receives the message, she decrypts it using her private key.

A developer has made a change to an Automation Anywhere TaskBot using the Enterprise Client interface. When running the bot from the Control Room, the developer is surprised to see the previous version of the TaskBot. What must be done to overcome the issue?

Answers

Answer:

Copy the Task Bot from the client device to the control room server.

Explanation:

First, we need to understand what we mean by Automation Anywhere: This is a web based controlled and  popular robotic process automation (RPA) vendors offering powerful & user-friendly RPA capabilities to automate any complex tasks. It is one of the "Revolutionary Technology" that changes the way the enterprise operates. This tool combines conventional RPA with intellectual elements like natural language understanding and reading any unstructured data.

Automation Anywhere allows organizations to automate the processes which are performed by the humans. It is a Web-Based Management System which uses a Control Room to run the Automated Tasks. Automation Anywhere tool can automate ends to end business operations for companies.

Mrs. Johnson is here today to receive an intercostal nerve block to mitigate the debilitating pain of her malignancy. Her cancer has metastasized to her bones in her thoracic spine. What ICD-10-CM codes are reported?a.M54.6, C79.51, C80.1b.C79.51, G89.3, C80.1c.G89.3, C79.51, C80.1d.C79.51, G89.3, M54.6, C80.1

Answers

Answer:

The correct answer is:

a. M54.6, C79.51, C80.1

Explanation:

-  M54.6 Pain in thoracic spine. It is a billable/specific ICD-10-CM code that can be used to indicate a diagnosis for reimbursement purposes. The 2020 edition of ICD-10-CM M54.

- C79.51: Secondary malignant neoplasm of bone, it is a billable/specific ICD-10-CM code that can be used to indicate a diagnosis for reimbursement purposes.

- G89. 3 is a billable/specific ICD-10-CM code that can be used to indicate a diagnosis for reimbursement purposes. The 2020 edition of ICD-10-CM G89.

Malignant neoplasm of anus, unspecified

Neoplasm related pain (acute) (chronic)

Pain in thoracic spine. M54. 6 is a billable/specific ICD-10-CM code that can be used to indicate a diagnosis for reimbursement purposes. The 2020 edition of ICD-10-CM M54.

Malignant (primary) neoplasm, unspecified

- C80. 1 is a billable/specific ICD-10-CM code that can be used to indicate a diagnosis for reimbursement purposes. The 2020 edition of ICD-10-CM C80.

he fundamental building block in every Hypertext Markup Language (HTML) document is the _____ tag, which marks a component in the document.

Answers

Complete Question: The fundamental building block in every Hypertext Markup Language (HTML) document is the _____ tag, which marks a component in the document.

Answer:

The Element Tag

Explanation:

In Hypertext Markup Language, the element tag which has an "open and closing"  (With a few exceptions with only opening tags e.g the break tag that produces a new line) is considered the fundamental building block of an HTML document. There exist elements for representing every component of an HTML document, Headings, Title, paragraphs, body, etc. Each of these elements used in their respective tags represents the appropriate section/component of an HTML document.

What technology allows you to hide the private IP address of a system from the Internet?a. SSLb. RADIUSc. PPTPd. NAT

Answers

Answer:

The answer is "Option d".

Explanation:

In networking, NAT refers to the Network Address Translation. This process is used to translate computer IP addresses into a single IP address in your local network. It allows private IP networks to connect to the Internet using unregistered IP addresses. and other options are incorrect that can be described as follows:

In option a, SSL stands for Secure Sockets Layer. It is used in transmission of documents or data over a network that's why it is not correct.In option b, RADIUS stands for Remote Authentication Dial-In User Service. It is used to manage the data on a network.In option c, PPTP stands for Point-to-Point Tunneling Protocol. It is used to provide a set of rules for communicating through a network that's why it is not correct.

Jay is a security administrator for a large company and has about 100 hosts on his network that were recently attacked by a virus. He’s concerned because there was a patch available that would have minimized the impact from the virus. What is the best solution to implement on the network?

Answers

Answer:

Jay should install patch management software and tools.

Explanation:

Patch management can manage this network of hosts as it will persistently deploy all the missing patches to keep these computers up to date.  Patch management software helps to test and install multiple patches on existing applications on a computer. This allows systems in a network to stay up to date on existing patches and decide which patches are the appropriate ones. So this is how patches can be easily managed and can fix security flaws and vulnerability. Patch management tools and software lessens security failure by applying security patches at the right time, increases productivity and enhance applications with new features.

What is the purpose of a self-assessment (such as the Holland Code)? Select one: a. To systematically write a mission statement and set goals and key performance indicators b. To systematically reflect on who you are as a person, including your interests, personality traits, and goals c. To systematically determine your strengths and weaknesses d. To systematically determine the major and career a student must pursue

Answers

Answer:

Option B.

Explanation:

Self assessment is basically used to gauge the performance and ability of a person. It also helps to identify the goals and interests.

How many bits are used to direct traffic to specific services running on a networked computer?

Answers

Answer:

The correct answer is 16 bit.

Explanation:  

The main role of the transport layer provided the communication channel of the process which are running in a different host. When the information flows there is always traffic that is arisen but the transport layer aimed is that process will go at the correct node and received at the proper destination. The 16-bit number specifies that the process or node is running in the networked traffic.

is a sophisticated printer used to produce high-quality drawings such as blueprints, maps, and circuit diagrams.

Answers

Answer:

Plotters printers

Explanation:

Plotters printers are sophisticated printer that uses pen, pencil, marker, or another writing tool instead of the regular toner for traditional printers to produce high-quality drawings such as vector graphics, blueprints, maps, and circuit diagrams etc.

Which incident response practice most strongly suggests a lack of DevOps culture?

Answers

Answer:

An incident of mis-understanding between developers and operations, sharing dull communication or closed-minded attitude suggests a lack of DevOps culture.

Explanation:

DevOps culture means shared responsability for the designed software enhancing straight and clear communication to build collaboration between IT and customer up.

A DevOps culture should foster a positive-constructive two way mindset between developers, testers and operations teams, for everyone to work towards the same purpose.

Developed culture includes values and standards as writing skills evaluation and knowledge assesment which should be mandatory.

Isabella is a security support manager for a large enterprise. In a recent meeting, she was asked which of the standard networking devices already present on the network could be configured to supplement the specific network security hardware devices that were recently purchased. Which of these standard networking devices would Isabella recommend?
A. router
B. hub
C. virtual private network
D. SIEM device

Answers

Answer:

The correct answer to the following question will be Router.

Explanation:

Mainly router is an standard device used in networking between computer networks and is connected from the different data lines from IP networks. So many of the company's managers will recommend a router for any networking-related work.

The other three options like, hub basically works as a center of activity from which the devices can be connected, Virtual private network (VPN) is a private type of network for ex. Internet and SIEM (Security Information and Event Management) device provides security alerts that are generated by network hardware.

Hence, a very suitable device will be a Router for a company.

Amy just added a 462 meter run of fiber optic cable to the network what should she do next?

Answers

Answer:

test it.

Explanation:

Based on the information provided within the question it can be said that the next logical step after installing the 462 meter run of cable would be to test it. This is done in order to make sure that there were no malfunctions during installation and that everything is running through the cable correctly. To test the cable you must perform an end-to-end attenuation test which will verify the quality of the installation as well as ensure high quality system performance.

When an object is selected in Visual Studio, ____________________ and a heavier border appear on the outer edges of the object.

Answers

Answer:

Size Handlers

Explanation:

In Visual Studio, the fields, images, text boxes are considered as objects. Editing reports and applying same changes on the objects require objects to be selected. When a object is selected (by clicking on it), a frame appears around it along with squares. These squares are called size handlers. They allow users to change the size of an object. Object can be make longer, wider, smaller by using size handlers. Hence sizing handle is a tool used for resizing an object.

Your customer, Mykel, is ordering a custom-built computer for his home office and isn’t sure which components should be the highest priority to meet his needs. He’s a software developer and runs multiple VMs to test his applications. He also designs some of his own graphics, and he plays online games when he’s not working. Which of the following priorities would be most important for Mykel’s computer?a. High-end graphics card, RAID array, and lots of RAMb. High-end CPU, lots of RAM, and high-end graphics cardc. Multiple hard drives, lots of RAM, and high-end CPUd. High-end graphics card, expansion audio card, and lots of RAM

Answers

Answer:

Option B

Explanation:

Your customer, Mykel, is ordering a custom-built computer for his home office and isn’t sure which components should be the highest priority to meet his needs. He’s a software developer and runs multiple VMs to test his applications. He also designs some of his own graphics, and he plays online games when he’s not working.

High-end CPU, lots of RAM, and high-end graphics card priorities would be most important for Mykel’s computer to implement his work.

What is the correct HTML for making a text input field?

A.
B.
C.
D. Next ❯

Answers

Answer:

Option (B)

Explanation:

For taking an input in text form in html we use <input> tag. This tag does not need to be closed as it does not have any end tag in HTML. This input tag is of various types like submit,button,password,etc. To output an empty text field in which text input should be entered, <input> tag of type text should be used.

Which Traffic Source dimensions does Google Analytics automatically capture for each user who comes to your site?A. Source, Keyword, Campaign nameB. Source, Medium, KeywordC. Source, Medium, Campaign nameD. Medium, Keyword, Campaign name

Answers

For each user who comes to your site the google analytics automatically capture the traffic source dimensions Source, Medium, Campaign name.

Explanation:

Source:

There cannot be any reference to a website without an origin source. The source is basically the origin of your traffic such as a search engine (google) or a domain (ex: Twitter).

Medium:

Every referral to a website also has a medium along with the source.examples are -:  unpaid search, "cost per click", referral, mail.

Campaign name:

The campaign Name is the name referring to the google ads campaign.

An electronics store sends an email survey to all customers who bought tablets. The previous month, 570 people bought tablets. Surveys were sent to 300 of these people, chosen at random, and 138 people responded to the survey. Identify the population and the sample. The population is 570. The sample is 138. The population is 570. The sample is 300. The population is 300. The sample is 138. The population is 138. The sample is 570. The population is 138. The sample is 300.

Answers

Answer:

The answer is C.

Explanation:

Population and sample are terms used in researchs to describe the different sets of subjects and helps distinguish them.

In the example given in the question, the research is the email survey for the people who bought tablets. Although the total number of tablets sold is 570, the survey is only sent to 300 of them which were randomly selected so the total population of the survey is 300. And out of that 300, only 138 responded to the survey email and are the only ones that are qualified for observation and acquiring research data. Therefore the sample of the survey is 138.

I hope this answer helps.

Other Questions
Your firm is considering a project that will cost $ 4.548 million up front, generate cash flows of $ 3.50 million per year for 3 years, and then have a cleanup and shutdown cost of $ 6.00 million in the fourth year.a. How many IRRs does this projecthave?b. Given a cost of capital of 10.0 % should this project be accepted? What is a pestle analysis for an escape room A child with brain damage was told a disheartening story, threatened by another child, and subjected to a loud noise; he exhibited no emotional displays. The child was able to express positive emotion in appropriate scenarios. Which area of the brain was likely damaged?What information do you need to know? If 10 50-74 is written as an integer in base decimal notation, what is the sum of the digits in that integer? Suppose you are driving due east, traveling a distance of 1500 min 2 minutes. You then turn due north and travel the same distance in the same time. What can be said about the average speeds and the average velocities for the two segments of the trip? (a) The average speeds are the same, and the average velocities are the same. (b) The average speeds are the same, but the average velocities are different. (c) The average speeds are different, but the average velocities are the same. solve sin x - (3sin x-1) = 0 What part of the human body has the same role as the power source in a computer? The number of square feet in the area of a square is 5 more than the number of feet in the perimeter of the square. Find the length of a side. At a popular theme park, there were 2,000,000 visitors last year. This year, there were 2,100,000 visitors. What is the percent increase in visitors from last year to this year? (Enter an exact number.) Erik works as a counselor. He strongly believes in an individual's capacity for self-fulfillment, self-awareness, and decision making. He follows the principle that people are responsible for choosing their conduct. Erik's beliefs best exemplify the _______ perspective. The second side of a triangle is 7 inches more than the first side. The third side is 4 inches less than 3 times the first. The perimeter is 28 inches. Find the length of the three sides of the triangle. For which pair of functions is (g circle f) (a) = StartAbsoluteValue a EndAbsoluteValue minus 2? An object will be stable if __________. a. its center of gravity lies outside b. its base of support its center of gravity lies over c. its base of support d. its center of gravity is below e. its highest point For a two-source network, if current produced by one source is in one direction, while the current produced by the other source is in the opposite direction through the same resistor, the resulting current is? a. The product of the two and the direction of the smaller b. The difference between the two and has the same direction. c. The sum of the two and the direction of either d. The average of the two and the direction of the largest why does the U.S government issue savings bonds? All of the following elements should be included in a project scope statement EXCEPT: What is chiaroscuro?A Astyle of art that uses strong contrasts benveen light and darkB Avpe of stained glass arrangement that brings light in during the day and sends light out at nightC. A traditional East Asian ink and wash paintingD. Acolorful and realistic style of art Solve 7x+3y=8 and 4x-y=-9 simultaneously Multiple Choice Question 91 Equipment was purchased for $147000. Freight charges amounted to $4000 and there was a cost of $19000 for building a foundation and installing the equipment. It is estimated that the equipment will have a $34000 salvage value at the end of its 5-year useful life. Depreciation Expense each year using the straight-line method will be ____ . During each mile you drive, you make approximately __________ driving-related decisions. Steam Workshop Downloader