SlideShare une entreprise Scribd logo
1  sur  3
Assembly language SPARC converting a string to lowercase and counting the length.
Write a program that accepts a string from the user. You can assume the length of the string will
be less than 30 characters and only alphabetical letters are entered.
Your program should then prompt the user to enter a letter (either lower case or upper case).
After this, you should 1) display the string with only lower case letters, 2) display the length of
the string, 3) count the number of occurrences of the letter entered (upper or lower case), 4) store
the string with the letter removed (upper and lower case occurrences) and display the shortened
string, and 5) ask the user if they want to continue or not. Error checking on user input is
required for the single letter input and the option to continue or not.
Solution
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char c[20];
int i,j,len;
clrscr();
printf(" Enter the string: ");
gets(c);
len=strlen(c);
for(i=0;i<len;i++)
{
for(j=0;j<=i;j++)
{
printf("%c",c[j]);
}
printf(" ");
}
for(i=len-1;i>0;i--)
{
for(j=0;j<i;j++)
{
printf("%c",c[j]);
}
printf(" ");
}
getch();
}
//OUTPUT:
//Enter the string: abcd
a
ab
abc
abcd
abc
ab
a

Contenu connexe

Similaire à Assembly language SPARC converting a string to lowercase and counting.docx

Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdffazilfootsteps
 
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docx
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docxShad_Cryptography_PracticalFile_IT_4th_Year (1).docx
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docxSonu62614
 
Ch3 Formatted Input/Output
Ch3 Formatted Input/OutputCh3 Formatted Input/Output
Ch3 Formatted Input/OutputSzeChingChen
 
Error correction-and-type-of-error-in-c
Error correction-and-type-of-error-in-cError correction-and-type-of-error-in-c
Error correction-and-type-of-error-in-cMd Nazmul Hossain Mir
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercisesNico Ludwig
 
Code In PythonFile 1 main.pyYou will implement two algorithms t.pdf
Code In PythonFile 1 main.pyYou will implement two algorithms t.pdfCode In PythonFile 1 main.pyYou will implement two algorithms t.pdf
Code In PythonFile 1 main.pyYou will implement two algorithms t.pdfaishwaryaequipment
 
Write a parallel program using MPI and not OpeMP to accomp.pdf
Write a parallel program using MPI and not OpeMP to accomp.pdfWrite a parallel program using MPI and not OpeMP to accomp.pdf
Write a parallel program using MPI and not OpeMP to accomp.pdfaaryanentp
 
Format string
Format stringFormat string
Format stringVu Review
 

Similaire à Assembly language SPARC converting a string to lowercase and counting.docx (11)

ODS Page Breaking
ODS Page BreakingODS Page Breaking
ODS Page Breaking
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdf
 
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docx
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docxShad_Cryptography_PracticalFile_IT_4th_Year (1).docx
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docx
 
Ch3 Formatted Input/Output
Ch3 Formatted Input/OutputCh3 Formatted Input/Output
Ch3 Formatted Input/Output
 
Error correction-and-type-of-error-in-c
Error correction-and-type-of-error-in-cError correction-and-type-of-error-in-c
Error correction-and-type-of-error-in-c
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises
 
Code In PythonFile 1 main.pyYou will implement two algorithms t.pdf
Code In PythonFile 1 main.pyYou will implement two algorithms t.pdfCode In PythonFile 1 main.pyYou will implement two algorithms t.pdf
Code In PythonFile 1 main.pyYou will implement two algorithms t.pdf
 
Write a parallel program using MPI and not OpeMP to accomp.pdf
Write a parallel program using MPI and not OpeMP to accomp.pdfWrite a parallel program using MPI and not OpeMP to accomp.pdf
Write a parallel program using MPI and not OpeMP to accomp.pdf
 
Unit - 1.ppt
Unit - 1.pptUnit - 1.ppt
Unit - 1.ppt
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Format string
Format stringFormat string
Format string
 

Plus de bickerstaffinell

A- Imagine you were recently hired as a general manager working in a.docx
A-  Imagine you were recently hired as a general manager working in a.docxA-  Imagine you were recently hired as a general manager working in a.docx
A- Imagine you were recently hired as a general manager working in a.docxbickerstaffinell
 
a) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docxa) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docxbickerstaffinell
 
All organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docxAll organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docxbickerstaffinell
 
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docxAll the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docxbickerstaffinell
 
All of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docxAll of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docxbickerstaffinell
 
All of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docxAll of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docxbickerstaffinell
 
Airport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docxAirport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docxbickerstaffinell
 
Agency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docxAgency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docxbickerstaffinell
 
After studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docxAfter studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docxbickerstaffinell
 
After reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docxAfter reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docxbickerstaffinell
 
A vaccine against HIV Group of answer choices may be impossible due.docx
A vaccine against HIV    Group of answer choices may be impossible due.docxA vaccine against HIV    Group of answer choices may be impossible due.docx
A vaccine against HIV Group of answer choices may be impossible due.docxbickerstaffinell
 
Additional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docxAdditional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docxbickerstaffinell
 
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docxAddison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docxbickerstaffinell
 
actually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docxactually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docxbickerstaffinell
 
accumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docxaccumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docxbickerstaffinell
 
Accounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docxAccounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docxbickerstaffinell
 
According to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docxAccording to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docxbickerstaffinell
 
According to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docxAccording to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docxbickerstaffinell
 
According to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docxAccording to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docxbickerstaffinell
 
A-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docxA-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docxbickerstaffinell
 

Plus de bickerstaffinell (20)

A- Imagine you were recently hired as a general manager working in a.docx
A-  Imagine you were recently hired as a general manager working in a.docxA-  Imagine you were recently hired as a general manager working in a.docx
A- Imagine you were recently hired as a general manager working in a.docx
 
a) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docxa) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docx
 
All organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docxAll organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docx
 
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docxAll the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
 
All of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docxAll of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docx
 
All of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docxAll of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docx
 
Airport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docxAirport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docx
 
Agency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docxAgency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docx
 
After studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docxAfter studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docx
 
After reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docxAfter reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docx
 
A vaccine against HIV Group of answer choices may be impossible due.docx
A vaccine against HIV    Group of answer choices may be impossible due.docxA vaccine against HIV    Group of answer choices may be impossible due.docx
A vaccine against HIV Group of answer choices may be impossible due.docx
 
Additional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docxAdditional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docx
 
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docxAddison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
 
actually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docxactually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docx
 
accumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docxaccumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docx
 
Accounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docxAccounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docx
 
According to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docxAccording to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docx
 
According to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docxAccording to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docx
 
According to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docxAccording to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docx
 
A-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docxA-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docx
 

Dernier

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Dernier (20)

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 

Assembly language SPARC converting a string to lowercase and counting.docx

  • 1. Assembly language SPARC converting a string to lowercase and counting the length. Write a program that accepts a string from the user. You can assume the length of the string will be less than 30 characters and only alphabetical letters are entered. Your program should then prompt the user to enter a letter (either lower case or upper case). After this, you should 1) display the string with only lower case letters, 2) display the length of the string, 3) count the number of occurrences of the letter entered (upper or lower case), 4) store the string with the letter removed (upper and lower case occurrences) and display the shortened string, and 5) ask the user if they want to continue or not. Error checking on user input is required for the single letter input and the option to continue or not. Solution #include<stdio.h> #include<conio.h> #include<string.h> void main() { char c[20]; int i,j,len; clrscr(); printf(" Enter the string: "); gets(c); len=strlen(c);