1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
9966 [12]
3 years ago
8

2. Write a program that initializes an array of characters with the phrase, "Take me to Clearwater Beach!". Using pointers, scan

the array to make each character upper case. The catch: you may NOT use the isupper(), islower(), toupper(), or tolower() functions. You must calculate whether a character is upper or lower case, and use the same logic to convert to upper case where applicable
Computers and Technology
1 answer:
navik [9.2K]3 years ago
6 0

Answer:

Written in C++

#include<iostream>

using namespace std;

int main() {

char myword[] = {'T','a','k','e',' ','m','e',' ','t','o',' ','C','l','e','a','r','w','a','t','e','r',' ','B','e','a','c','h','!', '\0'};

for (char *i = myword; *i != '\0'; ++i){

if( *i >= 'a' && *i <= 'z'){

           *i -= 'a' - 'A';    

       }

   }

   cout<<myword;

   return 0;

}

Explanation:

This line initializes the string to a char array

char myword[] = {'T','a','k','e',' ','m','e',' ','t','o',' ','C','l','e','a','r','w','a','t','e','r',' ','B','e','a','c','h','!', '\0'};

This iterates through the char array

for (char *i = myword; *i != '\0'; ++i){

This checks for uppercase or lowercase

if( *i >= 'a' && *i <= 'z'){

This converts to lowercase

           *i -= 'a' - 'A';

       }

   }

This prints the new string in all uppercase

   cout<<myword;

You might be interested in
Kindly help me in this question by C PROGRAM or BY WORDINGS WHICH DESCRIBES THE PROBLEM SOLUTION
Serjik [45]

Answer:

First of all you need to put it in shorter terms  

Explanation:

7 0
3 years ago
2) List three (3) negative impact of Technology on society
Nataly [62]

Answer:

1. social media and mobile devices may lead to psychological.

2. They may contribute to more serious health conditions such as depression.

3. The overuse of technology may have a more significant impact on developing children and teenagers.

Explanation:

may this help you have a good day

5 0
3 years ago
Jessica is working on a report for her art history class. She is using Microsoft Word for her report so that she can incorporate
Lana71 [14]

Answer:

Clicking the F4 button

Explanation:

The function keys or F keys are in most cases lined along the top of the keyboard and labeled F1 through F12. These keys act as shortcuts, performing certain functions.

The F4 button is a quick way to repeat the last command /action carried out.

For Jessica to continue applying this same style to additional headers, all she needs to do is click the Function Button F4 at the new location where she wants to apply Heading 1 Quick Style.

Other functions of the F4 button are:

  • Alt+F4 closes the program window currently active in Microsoft Windows.
  • Ctrl+F4 closes the open window or tab in the active window in Microsoft Windows.
8 0
3 years ago
Read 2 more answers
ALGUEM SABE COMO MUDA O NOME DE PERFIL!?!?!? SE SOUBER ME AJUDA!!
Delicious77 [7]

Answer:

The following are the steps to change the profile name.

Explanation:

In the given question it is not defined in which we change the profile name.so, we define the steps to change the profile name social media like (Face book).

  • first of all, login into your account with your id and password.
  • After login go to the setting bar, this bar is available on the top right corner.    
  • After opening the setting go to the general setting option and open it.
  • In the general setting option, It provides name, username, and contact options in these options we update the profile name.  
  • To update the profile name we click on the edit link in which it opens the edit panel. After writing the name select the save changes button to save the profile name.
4 0
4 years ago
there are four stage of the product life cycle. during which of these stages do you think is the best time for a company to purc
Alisiya [41]

Maturity Stage – During the maturity stage, the product is established and the aim for the manufacturer is now to maintain the market share they have built up. This is probably the most competitive time for most products and businesses need to invest wisely in any marketing they undertake. They also need to consider any product modifications or improvements to the production process which might give them a competitive advantage. i think this would be the best time for the company to purchase an emerging technology.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which command would you use to move a file from one location to another?
    6·2 answers
  • How useful do you find the creation of folders in your computer?
    8·2 answers
  • Select the correct answer.
    9·2 answers
  • Text that does not fit in a cell
    7·1 answer
  • Write a program segment that simulates flipping a coin 25 times by generating and displaying 25 random integers, each of which i
    5·1 answer
  • Which statement accurately compares the restart at 1 and continue numbering featured of word
    15·2 answers
  • Write a program that Read first n lines of file
    8·1 answer
  • Which of these is not a valid form<br>layout in Microsoft Access?​
    11·1 answer
  • Can someone be my friend,don't friend me until i ask you Questions
    14·1 answer
  • What causes the hidden node problem in a wireless local area network (wlan)?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!