Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a MIPS program using MARS IDE to accept a string from the user and (10 points) a) Find the length of the string

image text in transcribedimage text in transcribedimage text in transcribed

1. Write a MIPS program using MARS IDE to accept a string from the user and (10 points) a) Find the length of the string and display the string length (10 points). b) Using the given ascii value chart find the number of words in the string. (20 points) c) Using the given ascii value chart find if the string ends with a full stop. If ends with a full stop, display the message "Yes sentence" (10 points) d) Count the number of Capital letters in the sentence and display the count (10 points) e) Count the occurrences of letter 'i' in the sentence and display the count (10 points) Example input and output 1 If the user enters "My name is Ranjidha" Output should be Length of string is =19 Number of words in the sentence is = 4 Not a complete sentence Number of Capital letters 2 Occurrence of letter 'i' = 2 Example input and output 2 If the user enters "My name is ranjidha." Output should be Length of string is = 20 Number of words in the sentence is = 4 Yes a complete sentence. Number of Capital letters = 1 Occurrence of letter 'i' = 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago