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
PIT_PIT [208]
3 years ago
14

Write a method that accepts a string as an argument and checks it for proper capitalization and punctuation. The method should d

etermine if the string begins with an uppercase letter and ends with a punctuation mark. The method should return true if the string meets the criteria; otherwise it should return false .
Computers and Technology
1 answer:
Contact [7]3 years ago
6 0

Answer:

The method in Python is as follows:

def checkStr(strng):

   if strng[0].isupper() and strng[-1] == "?":

       return True

   else:

       return False

Explanation:

This defines the method

def checkStr(strng):

This checks if the first character i upper and if the last is "??

   if strng[0].isupper() and strng[-1] == "?":

If the condition is true, the function returns true

       return True

Else, it returns false

<em>    else:</em>

<em>        return False</em>

You might be interested in
There are two common computer platforms for both PC and MAC users. Which term best describes this function?
andrezito [222]

Operating system (OS)

5 0
3 years ago
Given the following structure and variable definitions, struct customer { char lastName[ 15 ]; char firstName[ 15 ]; unsigned in
garri49 [273]

Answer:

see explaination

Explanation:

a)

customerRecord.lastName

b)

customerPtr->lastName or (*customerPtr).lastName

c)

customerRecord.firstName

d)

customerPtr->firstName or (*customerPtr).firstName

e)

customerRecord.customerNumber

f)

customerPtr->customerNumber or (*customerPtr).customerNumber

g)

customerRecord.personal.phoneNumber

h)

customerPtr->personal.phoneNumber or (*customerPtr).personal.phoneNumber

i)

customerRecord.personal.address

j)

customerPtr->personal.address or (*customerPtr).personal.address

k)

customerRecord.personal.city

l)

customerPtr->personal.city or (*customerPtr).personal.city

m)

customerRecord.personal.state

n)

customerPtr->personal.state or (*customerPtr).personal.state

o)

customerRecord.personal.zipCode

p)

customerPtr->personal.zipCode or (*customerPtr).personal.zipCode

6 0
3 years ago
What is the operating system in a computer?
vaieri [72.5K]

The answer to this question would be the last choice. The master program that controls the system hardware.

All computers require a software known as the <em>operating system</em> to properly function and allow you to use the computer. This operating system works as a "master program" that manages the computer's processes and memory.

3 0
3 years ago
Read 2 more answers
Which was the first home game console to be launched?
Makovka662 [10]

Answer:

B: Odyssey

Explanation:

Odyssey, by Magnavox, was the first console ever made.

4 0
3 years ago
Read 2 more answers
In your organization, each department has a folder on a shared drive. Your boss frequently copies the folder to his local comput
sweet [91]

Answer:

You can possibly make it so that your co workers can not move folders. Ask your boss if he/she can make everyone content managers. This will make it so no one can move folders.

6 0
3 years ago
Read 2 more answers
Other questions:
  • write a pseudo code and flow chart that take a number as input and prints multiplication table up to 10
    9·1 answer
  • Do all accounts use the same routing number
    12·1 answer
  • When driving a truck is fuel crucial
    9·1 answer
  • Write code that causes a "triangle" of asterisks of size n to be output to the screen. specifically, n lines should be printed o
    10·1 answer
  • Please write down a java program for below instruction.Min-Heap: Construct a Min_Heap from the following set of integers. Rememb
    5·1 answer
  • Which of the following has the honor of the first robot-human handshake in space?
    10·1 answer
  • Describe a hybird electrical vehical
    12·1 answer
  • Write a Java application that uses the Math class to determine the answers for each of the following: a. The square root of 37 b
    10·1 answer
  • Which of the following is not System Software?
    5·1 answer
  • HOW TO CHANGE GRADE IN SKYWARD!!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!