Name this program lower.c - This program will read two strings and output which string has more lowercase letters. If both strings contain the same amount of lowercase letters, indicate the number of lowercase letters. Match the output according to the examples below. Assume each string will contain less than 50 characters.

Examples
Enter two strings:
Hello wORLD
'Hello' contains 3 more lowercase letter(s) than 'wORLD'.

Enter two strings:
HELLO WORLD
'HELLO' and 'WORLD' both contain 0 lowercase letter(s).

Enter two strings:
CRIMson! tide1
'tide1' contains 1 more lowercase letter(s) than 'CRIMson!'.

Answers

Answer 1

The program will be:

#include <stdio.h>

int lower_count(char s[]) {

   int count = 0, i;

   for (i = 0; s[i]; i++) {

       if (s[i] >= 'a' && s[i] <= 'z')

           ++count;

   }

   return count;

}

int main() {

   char str1[51], str2[51];

   int count1, count2;

   printf("Enter two strings:\n");

   scanf("%s", str1);

   scanf("%s", str2);

   count1 = lower_count(str1);

   count2 = lower_count(str2);

   if (count1 > count2) {

       printf("'%s' contains %d more lowercase letter(s) than '%s'.\n", str1, count1 - count2, str2);

   } else if (count1 < count2) {

       printf("'%s' contains %d more lowercase letter(s) than '%s'.\n", str2, count2 - count1, str1);

   } else {

       printf("'%s' and '%s' both contain %d lowercase letter(s).\n", str1, str2, count1);

   }

   return 0;

}

What is a program?

It should be noted that a series of instructions written in a programming language for a computer to follow is referred to as a computer program.

The software, which also contains documentation and other intangible components, comprises computer programs as one of its components. Source code is a computer program's human-readable form.

In this case, the program is shown above.

Learn more about program on:

https://brainly.com/question/26642771

#SPJ1


Related Questions

QUESTION 1
Match the description with the type of application is represented.
Application is capable of working offline
A Application is distributed and can run on more than one
machine
C.
B.
Application includes a client in the form of a web page
Application is designed to run a device like a smartphone
Application designed such that different parts of the
program runs on multiple computers
A. Distributed application.
B. Mobile application
C. Web application
D. Standalone application
E. Client-Server application

Answers

The matchup are:

Application is capable of working offline - D. Standalone application Application is distributed and can run on more than one machine - A. Distributed application.Application includes a client in the form of a web page - E. Client-Server applicationApplication is designed to run a device like a smartphone - B. Mobile application.Application designed such that different parts of the program runs on multiple computers - C. Web application.

What is a distributed application architecture?

This is know n to be when one or more local or remote clients tend to communicate with one or more servers that are known to be located on various computers connected by a network make up a distributed application.

Note that  Business operations can be carried out from any location through the use of this kind of application.

Therefore, Application is capable of working offline - D. Standalone application

Application is distributed and can run on more than one machine - A. Distributed application.Application includes a client in the form of a web page - E. Client-Server applicationApplication is designed to run a device like a smartphone - B. Mobile application.Application designed such that different parts of the program runs on multiple computers - C. Web application.

Learn more about Web application from

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

who is know as father of computer

Answers

Answer:

Babbage is sometimes referred to as "father of computing." The International Charles Babbage Society (later the Charles Babbage Institute) took his name to honor his intellectual contributions and their relation to modern computers.

Answer: Charles Babbage

2. Five batch jobs A through E, arrive at a computer center at almost same time. They have estimated running times of 10, 8, 4, 2, and 6. Their priorities are 3, 5, 2, 4 and 1 respectively with 5 being the highest priority. For each of the scheduling algorithms determine the average turnaround time and waiting time. ((5+5+5+5) [Unit 2: process management]
a. Round Robin (Quantum=2)
b. FCFS
c. Priority Scheduling
d. SJF

Answers

I think the answe will be C

If I am designing an application, which code to I input to create a link​

Answers

Answer:

[tex]{ \tt{ < a \: href = url > < a > }}[/tex]

The last must be a closing tag

Priya received an e-mail that appears to be from a social media website she has an account with. The e-mail asks her to confirm that she received the e-mail by replying with her password.
What should Priva do?
O ignore the e-mail and delete it © reply with her password © replv without including her password
O ask her friends how they responded

Answers

She should immediately ignore the email and delete it.

Question: 4/8
List all the tests that you would do in order to test the
isosceles function that receives as parameter the length of
the three sides of one triangle (integer numbers) and returns
one Boolean (true when the triangle is isosceles and false
either when it is not or when it is not possible to build a
triangle because of the lengths of the sides).
Test case example: islsosceles (3,2,3)--> TRUE. Keep the
same format for the proposed test cases.
Clarification: a triangle is isosceles when it has at least two
equal sides.

Answers

The generated test cases for the function assuming another developer coded the function is given below in a C++ program.

THE CODE

#include <iostream>  

#include <iomanip>

#include <string>

using namespace std;

// define the data type "triangletype" with {values}

enum triangleType { scalene, isosceles, equilateral, noTriangle };

// Prototype function which returns the position of triangleType{value}

// Example: Scalene = 0, isosceles = 1, etc. These are zero indexed.

triangleType triangleShape(double a, double b, double c);

// Prototype function which takes the integer value of the

// triangle type and outputs the name of triangle

string shapeAnswer(int value);

int main() {

   double inputA;

   double inputB;

   double inputC;

   cout << "To determine whether a triangle is either:" << endl;

   cout << setw(50) << " - Scalene" << endl; // Unequal in length

   cout << setw(52) << " - Isosceles" << endl; // Two sides equal length

   cout << setw(54) << " - Equilateral" << endl; // All sides equal

   cout << setw(57) << " - Not a triangle" << endl;

   cout << "Enter side A: ";

   cin >> inputA;

   cout << "Enter side B: ";

   cin >> inputB;

  cout << "Enter side C: ";

   cin >> inputC;

   cout << "The triangle is " << shapeAnswer(triangleShape(inputA, inputB, inputC)) << endl;

}

triangleType triangleShape(double a, double b, double c) {

   triangleType answer;

   if ( c >= (a + b) || b >= (a + c) || a >= (b + c) ) {

       answer = noTriangle;

   }

   else if (a == b && b == c) {

       answer = equilateral;

   }

   // Test the 3 options for Isosceles equality

   else if ( (a == b) && (a != c) || (b == c) && (b != a) || (a == c) && (a != b) ) {

       answer = isosceles;

   }

   else {

       answer = scalene;

   }

   return answer;

}

string shapeAnswer(int value) {

   string answer;

  switch (value) {

   case 0:

       answer = "Scalene";

       break;

   case 1:

       answer = "Isosceles";

       break;

   case 2:

       answer = "Equilateral";

       break;

   case 3:

       answer = "Not a triangle";

       break;

   default:

       break;

   }

   return answer;

}

Read more about C++ programs here:

https://brainly.com/question/20339175

#SPJ1

Dynamic Computer Programs Quick Check (Help pleasee!!)

Which best explains why many organizations want computer programs that are adaptable to different computing platforms? (1 point)

A. maintenance costs are lower across a single platform

B. lower maintenance costs, better user experience, and higher agility

C. not important to most companies

D. able to switch between platforms with no negative impact on user experience

2.why were different devices developed over time?

A. Computing and technical advances

B. To use different software

C. Experiment with new platforms

D. To integrate connectivity in new devices

3. What determines if a program is scalable?

A. Having the ability to be downloaded to different platforms

B. Accessible libraries

C. Memory storage

D. Stability during changes, upgrades, overhauls, and resource reduction

4. What is the difference between a single platform and a dynamic adaptive platform?

A. All programs that make use of the internet devices are dynamic

B. On a single platform, a device only functions in one type of environment like on the cloud or hardware whereas a dynamic adaptive platform can be downloaded from the could or installed on the hardware or accessed remotely via mobile

C. Single and dynamic platforms are the same, so there is no difference

D. Single platforms exclusively make use of networking tools

5. How does the concept “garage collector” affect a programs scalability?

A. The concept of scalability is itself invalid

B. Memory management does not impact scalability

C. The garage collector or (memory management) idea is not a valid concept

D. A good garage collector frees up more memory so programs can transition effortlessly into other platforms

Answers

The answer choice that best explains why many organizations want computer programs that are adaptable to different computing platforms is D. ability to switch between platforms with no negative impact on user experience.

The main reason why different devices were developed over time is A. Computing and technical advances

The answer choice that determines if a program is scalable is D. Stability during changes, upgrades, overhauls, and resource reduction

The difference between a single platform and a dynamic adaptive platform is B. On a single platform, a device only functions in one type of environment like on the cloud or hardware whereas a dynamic adaptive platform can be downloaded from the could or installed on the hardware or accessed remotely via mobile

What is a Computer Program?

This refers to the set of instructions that are given to a computer system to be able to execute specific tasks.

Hence, we can see that the way the concept “garage collector” affects a program's scalability is D. A good garage collector frees up more memory so programs can transition effortlessly into other platforms

Read more about computer programs here:

https://brainly.com/question/23275071

#SPJ1

A computer science degree does not typically give students the necessary skills to easily learn a new computer language. True or False.

Answers

Answer:

False

Explanation:

Cindy wants to install a new application on her computer. This application requires the operating system to have 1 gigabyte in working memory to function properly. Which of the following system requirements does Cindy need to check for compatibility?

Answers

Answer:  She needs to check her systems storage. (The working memory)

Explanation: In order to know if she can get the application she needs to check those things it requires.

Hope this helps-

Even though the terms operating memory and short-term memory are frequently used interchangeably, some theorists contend that the two memory types are distinct from one another because working memory permits the manipulation of information.

What system storage working memory to function properly?

In contrast to long-term memory, which stores a large amount of knowledge over a lifetime, working memory is the little amount of information that may be kept in mind and used to carry out cognitive tasks. One of the most often used concepts in psychology is working memory.

Working memory is the short-term storage of information, in contrast to long-term memory, which accumulates a huge quantity of information throughout a lifetime. That has been stored, while short-term memory only refers to the temporary storing of information.

Therefore,She needs to check the storage on her computer. She needs to check the things the application needs in order to determine whether she can obtain it.

Learn more about system storage here:

https://brainly.com/question/28585157

#SPJ2

Describe the word paraphernalia in your own words​

Answers

Answer:

miscellaneous articles especially the equipment needed for a particular activity

Assume that your company provides IT systems integration consultancy for mid-size
manufacturing, distribution and logistics companies in the country. Having recommended and
implemented a Management Information Systems (MIS) for one on your leading clients, and
taken part in the training session of the MIS conducted by the vendor, develop a process model
with the appropriate tool set for the activities that must be performed by the sales ordering
module of the MIS to capture customer’s sales order for a named client. (Note: Your solution
must include (but not limited to) an explanation of the sales module of the MIS and the steps
involved in the sales order activities).
Discuss how information systems are useful for organizations?

Answers

Every company needs records of its actions in order to identify the root of issues and implement appropriate fixes. Storage of operational data, communication logs, documents, and modification histories can be done with the help of information systems.

Why is information system important?

By supplying organizations with information they can use to make informed decisions, information systems may help them make better judgments. An organization might, for instance, employ an information system to gather sales data, which will show which products are selling well and which are not. The things to promote or delete can then be decided using this data.

By processing data from company inputs to produce information that is valuable for managing your operations, information systems become important. You can either add more data to make the information more accurate or use the information in innovative ways to boost the usefulness of the information system.

By enabling managers and other organization leaders to store data in folders and documents that can be seamlessly shared with the right personnel, information systems help disseminate information.

Learn more about information systems on:

https://brainly.com/question/14688347

#SPJ1

HELP ASAP 100 points as i need answer soon

You join Mountain Water Co – an expanding bottled water company as an information security officer. The company wants to do a lot of advertising of its bottled water products through its website. The CEO asks you to review the company website and report if it is secure. After talking to the webmaster you find out the following:
The Web server accepts all connections


No authentication is required

Self-registration is allowed

The web server is connected to the Internet

Is the situation secure? Select all that apply.


a. Yes. There is no threat to a bottled water company so it is secure.


b. There is insufficient information available to answer this question.


c. No. Anything that is connected to the Internet is insecure.


d. No. The system is allowing everyone to register. Only individuals who are associated with the company should be able to register.


e. No. If there is no authentication, then anyone with access to the website online can access it. For good security only individuals with certain authorized roles should access a website.

Answers

Answer:

yes

Explanation:

but you need to open the website before asking this question

Question 8
T
Many states are reducing property taxes for homeowners and extend financial aid for renters in the form of tax
credits.

Answers

Answer: Hey! What's the question?

Explanation:

Which of these is logically equivalent to x OR y?
NOT (x AND y)
NOT (NOT X AND NOT y)
O NOT X AND NOT Y
(x AND NOT Y) OR (NOT x AND y)

Can someone who actually knows plsssss reply now plsss help

Answers

Answer:

NOT (NOT x AND NOT y)

Explanation:

This is DeMorgan's theorem. Look that up for more details.

[tex]{\displaystyle {\overline {A\cdot B}}={\overline {A}}+{\overline {B}}} \newline \newline{\displaystyle {\overline {A+B}}={\overline {A}}\cdot {\overline {B}}}[/tex]

So

[tex]{A + B}=\overline{{\overline {A}}\cdot{\overline {B}}}}[/tex]

You can also compare them by creating a truth table.

[tex]\begin{tabular}{ c | c | c } x & y & x OR y \\ 0 & 0 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 1 \\\end{tabular}[/tex]

A ______________ is responsible for transferring: Power, Data, Memory location and clock timing.

Answers

Answer:

Control Unit

Explanation:

Control unit is responsible for coordinating various operations using timing signals. The control unit (CU) is a component of a computer's central processing unit (CPU) that directs the operation of the processor. It tells the computer's memory, arithmetic/logic unit and input and output devices how to respond to the instructions that have been sent to the processor.

Answer:

I am pretty sure its the cpu.

Explanation:

The ______________ and Internet connectivity provide the communication path and connection to the network.

Answers

Answer:

I chose router for this one too. I don't know if both the answers are router, but I got an A so it was either one was wrong or both were right.

Explanation:

The router and Internet connectivity provides the communication path and connection to the network.

What is internet connectivity?

Dial-up telephone lines, broadband connections that are constantly on, and wireless devices are all examples of "Internet connectivity," which is the phrase used to describe how individuals connect to the Internet. The most recent of them is a wireless connection to the Internet.

One or more packet-switched networks or subnetworks can be connected using a router. By sending data packets to their intended IP addresses, it manages traffic between different networks and permits several devices to share an Internet connection.

The router is a transformation of information from one to another packet.

Therefore, the router is the provider of connection to the network.

To learn more about internet connectivity, refer to the below link:

https://brainly.com/question/13600794

#SPJ2


Which of the following are the functions of an OS?
An OS is responsible for managing and coordinating activities on a computer. The OS delegates booting of a system to other parts of the
system. The OS allocates computer memory and CPU time to various applications and peripheral devices. After this, the CPU manages the
peripheral devices, while the OS acts as an Interface between the user and the peripherals.

Answers

Answer:

The OS allocates computer memory and CPU time to various applications and peripheral devices. After this, the CPU manages the peripheral devices, while the OS acts as an Interface between the user and the peripherals.

your University wants to create a new department for university alumni. Every
employee has their own system credentials and they can use these credentials on any system inside the
building. how can you ensure the system authorization, availability and monitoring.

Answers

The way to ensure the system authorization, availability and monitoring is that an efficient and effective online examination system be made or a system where all can clock in daily can be used.

What is system credentials?

The system credentials is seen as a kind of Credentials that is known to be used for the verification of peoples identity as well as been used as a tools for authentication.

Note that they can be part of a certificate or other authentication act that helps to know the identity of a user's and as such, The way to ensure the system authorization, availability and monitoring is that an efficient and effective online examination system be made or a system where all can clock in daily can be used.

Learn more about system credentials from

https://brainly.com/question/4670419

#SPJ1

What is the purpose of a frame check sequence (FCS) footer?

Answers

Answer:

Frame check sequence (FCS) refers to the extra bits and characters added to data packets for error detection and control.

Explanation:

Network data is transmitted in frames. Each frame is comprised of bits of data appended to the header, which holds basic information such as source and destination media access control (MAC) addresses and application. Another set of characters is added to the end of the frames, which are checked at the destination. Matching FCSs indicate that delivered data is correct.

How does the CPU interface with the device to coordinate the transfer?

Answers

Explanation:

The CPU can initiate a DMA (Direct Memory Access) operation by writing values into special registers that can be independently accessed by the device, The device initiates the corresponding operation once it receives a command from the CPU.

What are the 3 constraints for mineshaft headgear

Answers

The  3 constraints for mineshaft headgear

The ore, or metal often run out. There is issue of  Incompetence or faulty parts.Their structure can be complicated.What is Mine headgear constructions about?

Mine headgear constructions is known to be one that tends to aid the wheel method that is often used for suspending any kind of winding cables that moves workers and ore up as well as  down deep level shafts.

Note that the  The  3 constraints for mineshaft headgear

The ore, or metal often run out. There is issue of  Incompetence or faulty parts.Their structure can be complicated.

Learn more about mineshaft headgear from

https://brainly.com/question/24554365

#SPJ1

Adam has to write a paper where the margins need to be set to these measurements:

Left: 1.5"

Right: 4"

Bottom: 1"

Top: 1"

How could he go about setting these measurements up?

Launch the Page Setup dialog box from the Page Setup group; in the Margins section, enter the page margin values and click OK.
Click on the Margins button in the Page Setup group; select a preset margin option that matches the margin values.
Launch the Page Setup dialog box from the Page Setup group; in the Paper size section, enter the page margin values and click OK.
Click on the Layout tab in the ribbon; in the Paragraph group, enter the margin values in the Indent and Spacing boxes.

Answers

Answer: Click on the Margins button in the Page Setup group; select a preset margin option that matches the margin values.

Explanation: hope this help
stay safe brainliest is appreciated :)

What is it called when a programmer includes a step in an algorithm that
allows the computer to manage its data so that the programmer can return to
it later?
OA. Sequencing
OB. Selection
C. Iteration
OD. Storage

Answers

Explanation:

sequencing is thecorrect answer .

Answer:

D.storage

just did it

Explanation:

Given positive integer num_insects, write a while loop that prints, then doubles, num_insects each iteration. Print values ≤ 100. Follow each number with a space.


Sample output with input: 8

8 16 32 64

Answers

Using the knowledge in computational language in python it is possible to write a code that given positive integer num_insects, write a while loop that prints, then doubles, num_insects each iteration.

Writting the code:

num_insects = int(input('Enter num: '))

while (num_insects > 0) and (num_insects <= 100):

  print(num_insects, end='\n') # New line

  num_insects = num_insects * 2

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

#SPJ1

Match each number system to set of symbols used to represent numbers in that system.
binary
hexadecimal
Digits
the digits 0 to 9
0 and 1
decimal
the digits 0 to 9 and the letters from A to F
Reset
Next
Number System
>

Answers

Answer:

1. The digits 0 to 9 --> decimal

3. 0 and 1 --> binary

2. The digits 0 to 9 and the letters from A to F --> hexadecimal

Which menu option allows you to change the display to close-up, single, or multiple pages?

Answers

What is the question asking for?……

How many ways can we write a list of 6 numbers from (1, 2, 3, 4, 5, 6, 7, 8) without repeating any?

Answers

Explanation:

[tex] \binom{n}{\\ k} = \binom{6}{8} = \frac{8 \times 7 \times 6 \times 5 \times 4 \times 3}{6 \times 5 \times 4 \times 3 \times 2} = 28[/tex]

We divide by factorial of 6 (!6) what is 6×5×4×3×2×1 so that there is no repetition.

Answer:

Explanation:

Number of combinations:

[tex]C_{8}^6 = \frac{8!}{(8-6)!*6! } = \frac{6!*7*8}{2!*6! } = \frac{7*8}{1*2} = \frac{56}{2}=28[/tex]

Identify two clues a tester can take from the code when writing tests.

Answers

The two clues that a  tester can take from the code when writing tests are:

Always write tests before the code needed to pass them.The test prepares for the code's intended behavior.

What do code tests do?

In order to find flaws or problems throughout the software development process, code-based testing requires running over every line of code in a program.

The program is tested against specific test cases to determine whether it executes the necessary functionalities. Static and structural testing are two further subcategories of code-based testing.

Therefore, the evidence that a  tester can use in a program if they are writing some kinds of codes are those based on the code written.

Learn more about coding from

https://brainly.com/question/22654163

#SPJ1

the ____ is a type of chart which displays the information as a series of data points​

Answers

Answer:

Scattered Chart

Explanation:

Hope it helps you

Answer the following questions in your own words.
[tex] \\ \\ [/tex]
1. What is the difference between tools and equipment?

2. Describe the word paraphernalia.​​

Answers

1. A tool is something more specific, used to do work. Tools are always equipment, but a pice of equipment is not always a tool. For instance a hammer and a saw are tools, and if you’re planning to build something they are part of your equipment for the job

2. The separate real or personal property of a married woman that she can dispose of by will and sometimes according to common law during her life
Other Questions
Which of these is logically equivalent to x OR y?NOT (x AND y)NOT (NOT X AND NOT y)O NOT X AND NOT Y(x AND NOT Y) OR (NOT x AND y)Can someone who actually knows plsssss reply now plsss help Badminton game played with one player per side. (identification)(Physical education) When sampling repeatedly from a population, the pattern describing the values a statistic can take and how often it takes those values is the. the measurement principle requires that a.amounts recorded in the financial statements be based on independently verifiable evidence b.the financial accounting standards board be fair and unbiased in its deliberations over new accounting standards c.accounting principles meet the objectives of the security and exchange commission d.business transactions be consistent with the objectives of the entity In the electron-transport chain, as electrons move along a series of carriers, they release energy that is used to do what?. Define book smart (5 sentences atleast) PLEASEE HELP the teacher separated her class of fifty-eight students into two groups. one group has 6 more than thrice as many students as the other group. how many students are in each group? How can i upgrade now during the trial? comparison of methods for spectral alignment and signal modelling of gabaedited mr spectroscopy data in the titration of 230.0 ml of 0.4000 m honh with 0.2000 m hbr, how many ml of hbr are required to reach the halfway point? Herbert spencer used the concept of social darwinism to defend the concepts of philanthropy and generous giving. the rise of poverty and the mortality rates of less fortunate people. the evolution of the human species and the will to survive. the need for immigration and equality between the classes. A toy doll and a toy robot are standing on a frictionless surface facing each other. The doll has a mass of 0. 20 kg, and the robot has a mass of 0. 30 kg. The robot pushes on the doll with a force of 0. 30 n. The magnitude of the acceleration of the robot is. A portion of the periodic table is shown below. Which column of elements would be most likely to chemically combine with sodium in a 1:1 ratio? GP Submarine A travels horizontally at 11.0 m/s through ocean water. It emits a sonar signal of frequency f = 5.27 10Hzin the forward direction. Submarine B is in front of submarine A and traveling at 3.00 m/s relative to the water in the same direction as submarine A. A crewman in submarine B uses his equipment to detect the sound waves ("pings") from submarine A. We wish to determine what is heard by the crewman in submarine B. (b) In Equation 17.19 , should the sign of v(S)be positive or negative? A rectangular hotel room has a perimeter of 72 feet. Its area is 320 square feet. What are the dimensions of the room? She is as tender as a May morning whats the answer to this??? you have to find where it increases, decreases, and where its constant.help.. a nurse-manager is planning a performance appraisal of an employee who has a number of performance deficiencies. what is the best approach to the performance appraisal of this employee? Read the passage below. Then answer the question that follows.Peter and Bobby were having a great afternoon of throwing the football around in the backyard. Their parents warned them to be careful and told them no throwing the ball in the house. Later, after it started raining, the boys moved their game to the living room. """AFTER A LONG THROW THEIR MOTHERS FAVORITE VASE WAS BROKEN.""" When she got home, she began questioning each of her sons about what had happened.What is the effect of the use of passive voice in the sentence in bold?A: To avoid revealing how the mother reactedB: To avoid revealing who broke the vaseC; To focus on exactly what happened to the vaseD: To scientifically explain the force and velocity of the ball put the following events in order from first to last. Cosmic microwave background is released The Big Bang Gravitational force separates from other three forces Protons and Neutrons form Antimatter and matter destroy each other. Inflationary Epoch - rapid cosmic inflation occursQuarks, electrons, and neutrinos form Primordial nucleosynthesis occurs (simple elements like Hydrogen, Helium and Lithiumform) Cosmic microwave background is releasedStar and Galaxy formation Now Our Solar System forms Earth is formed