Write a method that accepts a string as an argument and checks it for proper capitalization and punctuation. The method should determine 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 .

Answers

Answer 1

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

   else:

       return False


Related Questions

流火之詩II裏的團長叫"紅_"(20pts)(correct=brainliest)

Answers

Explanation:

倾尽天下—河图. 血染江山的画,怎敌你眉间一点朱砂

hope it is helpful to you

QUESTION 8
A weakness of PHP is that it only supports one database, MySQL.
True
False
QUESTION 9
All variable names in PHP are case-insensitive.
O True
False
QUESTION 10
An HTML form that is part of the PHP script that processes it is known as self-adhesive?
True
False

Answers

Answer:

question 8 is true

Explanation:

PHP is a server-side scripting language for creating dynamic web pages. ... The PHP programming language receives that request, makes a call to the MySQL database, obtains the requested information from the database, and then presents the requested information to your visitors through their web browsers.

List and describe at least two (2) very specific advantages of the CIF approach for enterprise-scale data warehousing for this company

Answers

Answer:

di ko po alam pa help po

Explanation:

pllssss

Which of the following is not a factor that determines how many images a memory card can hold?
A)
The storage space on the memory card.
B)
The size of the images.
C)
The way the images are compressed.
D)
The RAM on the computer to which the images will be transferred.

Answers

Answer:

D; The RAM on the computer to which the images will be transferred.

Explanation:

The answer is D) the RAM on the computer to which the images will be transferred

If I drop or withdraw from all my courses after the term begins I must: Select one: a. Do nothing; the UoPeople will issue me an administrative withdrawal but it will count as a term of inactivity. b. Apply for a LOA by contacting my Program Advisor. c. Apply for a LOA in the Student Portal.

Answers

Answer:

If I drop or withdraw from all my courses after the term begins I must:

b. Apply for a LOA by contacting my Program Advisor.

Explanation:

Given the responsibilities of a Program Advisor in the college, it is important that any course withdrawal is obtained through her office.  She helps students to make a choice of a major and a minor, ensuring that all degree graduation requirements are fully met.  A student should be able to discuss her academic interests, goals, course planning, or even performance with the Program Advisor.  Applying for a Letter of Absence (LOA) should be done through her.

Write a C++ program that creates a map containing course numbers and the room numbers of the rooms where the courses meet. The dictionary should have the following key-value pairs:

Course Number (key) Room Number (value)
CS101 3004
CS102 4501

The program should also create a map containing course numbers and the names of the instructors that teach each course. The map should have the following key-value pairs:

Course Number (key) Instructor (value)
CS101 Haynes
CS102 Alvarado

The program should also create a map containing course numbers and the meeting times of each course. The map should have the following key-value pairs:

Course Number (key) Meeting Time (value)
CS101 8:00am
CS102 9:00am

The program should let the user enter a course number, and then it should display the course's room number, instructor, and meeting time.

Answers

Answer:

Program approach:-

Using the necessary header file.Using the standard namespace I/O.Define the integer main function.Mapping course numbers and room numbers.

Explanation:

//header file

#include<iostream>

#include<map>

//using namespace

using namespace std;

//main function

int main(){

               //creating 3 required maps

               map <string,int> rooms;

               map <string,string> instructors;

               map <string,string> times;

               //mapping course numbers and room numbers

               rooms.insert(pair<string,int>("CS101",3004));

               rooms.insert(pair<string,int>("CS102",4501));

               //mapping course numbers and instructor names

               instructors.insert(pair<string,string>("CS101","Haynes"));

               instructors.insert(pair<string,string>("CS102","Alvarado"));

               //mapping course numbers and meeting times

               times.insert(pair<string,string>("CS101","8:00am"));

               times.insert(pair<string,string>("CS102","9:00am"));

               

               char choice='y';

               //looping until user wishes to quit

               while(choice=='y' || choice=='Y'){

                               cout<<"Enter a course number: ";

                               string course;

                               cin>>course;//getting course number

                               //searching in maps for the required course number will return

                               //an iterator

                               map<string, int>::iterator it1=rooms.find(course);

                               map<string, string>::iterator it2=instructors.find(course);

                               map<string, string>::iterator it3=times.find(course);

               

                               if(it1!=rooms.end()){

                                               //found

                                               cout<<"Room: "<<it1->second<<endl;

                               }else{

                                               //not found

                                               cout<<"Not found"<<endl;

                               }

               

                               if(it2!=instructors.end()){

                                               cout<<"Instructor: "<<it2->second<<endl;

                               }

               

                               if(it3!=times.end()){

                                               cout<<"Meeting Time: "<<it3->second<<endl;

                               }

                               //prompting again

                               cout<<"\nDo you want to search again? (y/n): ";

                               cin>>choice;

               }

how we can richer interaction

Answers

A beneficial and pleasing user experience when operating an electronic device. In the future, rich interaction will be voice and speech recognition that actually recognizes anyone's spoken command and robotic devices that automatically assist people.

After a worksheet has been completed, the statement columns contain all data that are required for the preparation of financial statements. True False

Answers

Answer:

True

Explanation:

Financial statements can be defined as a document used for the formal communication or disclosure of financial information and statements to present and potential users such as investors and creditors. Thus, a financial statement includes balance sheet, statement of retained earnings and income statement.

A worksheet comprises of a multiple-column form that is used by accountants or auditors for an adjustment process and the preparation of a financial statement. A worksheet contains the following columns; trial balance, adjusted trial balance, adjustments, balance sheet and income statement.

After a worksheet or spreadsheet document has been completed, a financial expert such as an accountant inputs into the statement columns all the data that are required for the preparation of financial statements.

¿Cuántos megabytes (MB) de capacidad tiene una memoria USB de 16 GB? el que me diga por que le doy una coronita

Answers

Answer:

16,384MB

Explanation:

1GB contiene 1024MB de capacidad. Si multiplicamos esto por 16 veemos que 16GB es igual a 16,384MB. Este seria el espacio exacto, aunque se dice que 1GB tiene 1000MB. Eso es por que la palabra Giga significa x1000 y el numero binario entero mas cercano a 1000 es 1024. Entonces los ingenieros usan este numero para representar la cantidad de espacio en un GB que tambien seria [tex]2^{10}[/tex]

Write a program that displays the smallest of five input values that may include duplicate values (e.g., 6, 4, 8, 6, 7). Hint: Review the four solutions in the smallest number case study in this chapter. Consider how easy or hard it would be to modify each of those algorithms to find the smallest of five rather than three values. Then modify the algorithm you consider most appropriate for this problem.

Answers

Answer:

Here the code is given as follows,

Explanation:

Code:-

import java.util.*;

class Chegg {

 

   public static void main(String args[])

   {

       Scanner sc=new Scanner(System.in);

       System.out.println("Enter 5 numbers");

       int arr[]=new int[5];

       int min;

       for(int i=0;i<5;i++)

       {

           arr[i]=sc.nextInt();

       

       }

       min=arr[0];

       for(int i=1;i<5;i++)

       {

           if(arr[i]<min)

           {

               min=arr[i];

           }

       }

       System.out.println(min);

   }

}

What help in executing commands quickly

Answers

Answer:99

Explanation:  Last summer, my family and I took a trip to Jamaica. My favorite part of the trip was when we went to a place called the Luminous Lagoon. We ate dinner and waited for the sun to go down. Then we boarded a boat and went out into the lagoon. That’s when the magic started.

At first we could not see very much in the darkness except for the stars in the sky. After a few minutes, however, I noticed some fish swimming in the water. They didn’t look like ordinary fish. These fish were glowing! Our guide explained that the glow came from tiny creatures in the water called dinoflagellates. These little animals are not visible to us, but their bodies produce light using something called bioluminescence, just like fireflies. There are so many of these creatures in Luminous Lagoon that the water around them seems to glow.

After our guide explained these facts to us, he told us to put our hands in the water. I was not sure if it would work, but I tried it. When I did, my hand looked like it belonged to a superhero! It was glowing bright blue. I hope someday I get to return to the Luminous Lagoon. The lights in the water were much more entertaining than the ones in the sky.

Problem:

audio

The Greek prefix dinos- means “whirling” and the Latin root word flagellum means “whip”. What does dinoflagellate most likely mean as it is used in the passage?

audio

the production of light from an organism’s body

audio

the study of creatures that live in the ocean

audio

to move around underwater water like a fish

audio

an organism with a whip-like part it uses to move around in the water

DDR III SDRAM (Double Data Rate III Synchronous Dynamic RAM) có tốc độ bus 800/1066/1333/1600 Mhz, số bit dữ liệu là 64, điện thế là 1.5v. Chuẩn giao tiếp của DDR III SDRAM là?

Answers

Answer:

hii ksdlf

Explanation:

jggkfvhvz Palakkad

Kylee needs to ensure that if a particular client sends her an email while she is on vacation, the email is forwarded to a
coworker for immediate handling. What should she do?
O Configure a response for external senders,
O Configure a response for internal senders.
O Only send during a specific time range.
O Configure an Automatic Reply Rule.

Answers

Answer: Configure a response for external senders,

Explanation:

Based on the information that we have from the question, Kylee can configure a response for external senders, which will help in ensuring that when the client sends the email, it'll be forwarded to a coworker for immediate handling.

Therefore, based on the options given, the correct option is A

Robyn needs to ensure that a command she frequently uses is added to the Quick Access toolbar. This command is
not found in the available options under the More button for the Quick Access toolbar. What should Robyn do?
O Access Outlook options in Backstage view.
Access Outlook options from the Home tab.
Access Quick Access commands using the More button.
This cannot be done.

IM TAKING TEST ANSWER PLS

Answers

Answer:

Option A

Explanation:

In case if Robyn is unable to find the frequently used command, then Robyn can use the back stage view to check for the command as the orientation setting allows to access more settings

Hence, option A is correct

Using the celsius_to_kelvin function as a guide, create a new function, changing the name to kelvin_to_celsius, and modifying the function accordingly. Sample output with input: 283.15 10.0 C is 283.15 K 283.15 K is 10.0 C 1 def celsius_to_kelvin value.celsius): value_kelvin 0.0 value_kelvin - value.celsius + 273.15 return value kelvin DIO! 5 7. Your solution goes here 9 value c - 10.0 10 print(value.c, Cis', celsius.to kelvin(value.c), 'K) 12 value floatinput ) 13 print(value, Kis', kelvin_to_celsius(value. ). 'C"> Run

Answers

Answer:

The function is as follows:

def  kelvin_to_celsius(value_kelvin):

   value_celsius = 0.0

   value_celsius = value_kelvin - 273.15

   return value_celsius

Explanation:

This defines the function

def  kelvin_to_celsius(value_kelvin):

This initializes value_celsius to 0

   value_celsius = 0.0

This calculates value_celsius

   value_celsius = value_kelvin - 273.15

This returns the calculated value_celsius

   return value_celsius

define the followings Super, Miniframe & hybrid Computer
Super computer​

Answers

Answer:

super computers are the largest , fastest and the most expensive computers which have a large memory capacity and very high processing speeds for solving scientific and engineering problems .

Mainframe computers are powerful, largest general purpose computers made to handle a large volume of data .Hybrid computers contain the major features of analog and digital computers which are mostly used for various engineering fields and scientific research .

hope it is helpful to you

Answer:

Explanation:

Super computer : The most powerful ,fastest and also very expensive computers are super computers.It waas developed in the 1980s .It is used to process large amount of data and to solve the complicated scientific notations.Some of the super computers are: cray-1 , cray-2 ,ETA etc

Miniframe computer :The very large and expensive computer that requires a very large clean room with air conditioner capable of supporting hundreds or even thousands of users simultaneously is called miniframe computer.It has a multiple processors .some examples of miniframe computer are :IBM s/390 , control data cyber 176 etc

hybrid computer :The computer that can perform the task of both analog and digital computer is called hybrid computer.It is also called special purpse computer because they are programmed for the specific purpose and can convert one type of data in another.It is used in a wasging machine , rocket launching etc.

Mini computer : mini computers are the medium sized computers which are larger than micro computers and samller than miniframe computers.They have larger storage capacity and higher speed than micro computers.Some of the mini computers are: IBM AS/400 , IBM system 360 HP etc

Hope this helps u!!

if a+1/a=3 find the valie of a^2+1/a^2​

Answers

Answer:

a² + 1/a² = 7

Explanation:

a + 1/a = 3 ; obtain the value of a² + 1/a²

Taking a + 1/a = 3

Squaring both sides ;

(a + 1/a)² = 3²

(a + 1/a)(a + 1/a) = a² + a/a + a/a + 1/a² = 3²

(a + 1/a)(a + 1/a) = a² + 1 + 1 + 1/a² = 9

a² + 2 + 1/a² = 9

a² + 1/a² = 9 - 2

a² + 1/a² = 7

Hence,

a² + 1/a² = 7

1. Write a generic method that compares its 2 arguments using the equals method and returns true if they are equal and false otherwise. Ensure that the name of your method includes your last name.

Answers

Answer:

Explanation:

The following piece of code is written in Java. It creates the method as requested that takes in two generic objects and compares them using the .equals() built in Java method. This method will return True if the objects are identical or False if they are not. A test case is used in the code and the output can be seen in the attached image below.

   public static <T> boolean comparePerez(T a, T b) {

       return a.equals(b);

   }

what is ms- power point?​

Answers

Answer:

Microsoft PowerPoint is a powerful slide show presentation program. It is a standard component of the company's Microsoft Office suite software, and is bundled together with Word, Excel, and other office productivity tools. The program uses slides to convey information rich in multimedia.

hope it work️

Answer:

Microsoft PowerPoint is a presentation software which is used to make slideshow.

Explanation:

hope you like it

Physical safeguards, also called logical safeguards, and are applied in the hardware and software of information systems.

a. True
b. False

Answers

Answer:

False

Explanation:

They are not applied in the hardware and software of information systems.

what are Manuscript signs​

Answers

Answer: See explanation

Explanation:

Manuscript signs, refers to the marks or the symbols that are used within a manuscript in order to show the necessary corrections which should be made during the preparation of a document.

Manuscript formatting is vital as it makes the manuscript easier to assess. In a situation whereby manuscripts are poorly formatted, it can be turned down by agents and publishers.

Cho 3 lớp như hình, viếtchương trình thực hiện các chức năng sau:
1.Nhập thông tin nngười(Person)gồm:nhân viên (Employee) và sinh viên(Student)
2.In ra 2 danh sách:Nhân viên, Sinh viên
3.In ra danh sách gồm các Nhân viên, Sinh viên được thưởng.Biết rằng:Nhân viên được thưởng nếu hireDay>25 Sinhviên được thưởng nếu mark>8
viết chương trình c++

Answers

Sorry I don’t know this language

Which answer below is NOT a function of a Data Scientist? O Data Exploitation O Data Strategies O Data Modeling O Data Preperation

Answers

Answer:

uh

Explanation:

yesyesyesyesyesyeysyeys

tools used to type text on Ms paint​

Answers

this is ur answer hope this answer will help u

Design an if-then statement ( or a flowchart with a single alternative decision structure that assigns 20 to the variable y and assigns 40 to the variable z if the variable x is greater than 100?

Answers

Answer:

The conditional statement and its flowchart can be defined as follows:

Explanation:

Conditional statement:

if x>100 Then //defining if that check x value greater than 100

y=20//holding value in the y variable

z=40//holding value in z variable

End if

(CO 4 and 5) Create a program that will read in a list of test scores from the user and add them to a list. Ask the user in between each score if they want to continue (y/n). Display all of the scores entered and the total score at the end. Using the code below, put the code in the proper order Sample output: Welcome to the Test Score Program Add score: 88.45 Do you want to continue

Answers

Answer and Explanation:

Using Javascript:

function AddScores(){

Window.alert("Welcome to the Test Score Program");

var ScoreList= new Array();

ScoreList.push(Prompt("Add Score"));

var WhatNext= Confirm("do you want to continue?");

If(WhatNext===true) {

do{

ScoreList.push(Prompt("Add Score"));

}

While(

Confirm("do you want to continue?")===true;);

}

Alert(ScoreList);

Alert(ScoreList.reduce(function(a,b){return a +b};,0);)

}

AddScores();

From the above code in javascript programming language, we have created a list ScoreList and added elements to it using push method of the array object and a do...while loop that checks the condition and then adds the user's input to the array. We then alerted the array to the screen and then summed up the array elements and also alerted to the screen.

Write a program Ticket.py that will allow the user to enter actual speed
limit, the speed limit at which the offender was travelling, and the number
of previous tickets that person has received. The application should
calculate and display how many miles over the speed limit the offender
was travelling, the cost of the speeding ticket, and court cost. Use $10.00
as the amount to be charged for each mile per hour over the speed limit.
The court cost should be $50.00

Answers

Answer:

Following are the code to the given question:

def speedlimit():#defining a method speedlimit

a= int(input("Enter the offender's speed in mph: "))#defining a variable for input value

lim = int(input("Enter the speed limit in mph: "))#defining a variable for input value

n = int(input("The number of previous tickets that person has received: "))#defining a variable for input value

if (lim >= 20) and (lim < 70):#defining if block to check speed is between 20 to 70

if a > lim:#use if to check lim value greater than a

print("Driver was going", a-lim, "mph over the limit.")#print calculated value with message

print("The cost of the speeding ticket $",10*(a-lim))#print calculated value with message

else:

print( "Driver was going at a legal speed.")#print message

else:

print('Invalid speed limit.')#print calculated value with message

print("Court cost $",(50 + n*20))#print calculated value with message

speedlimit()

Output:

Please find the attached file.

Explanation:

In this code, a method "speedlimit" is declared that defines three variables that are "a, lim, and n" in which we input value from the user-end.

Inside the method, a nested conditional statement is used that checks the speed value is between 20 to 70 if it is true it will go to the next condition in which it checks lim value greater than a. It will use a print message that will print the calculated value with the message.

Which of the following statement is true? Single choice. (2 Points) Views are virtual tables that are compiled at run time All of the Mentioned Views could be looked as an additional layer on the table which enables us to protect intricate or sensitive data based upon our needs Creating views can improve query response time

Answers

Answer:

All of the mentioned views could be looked as an additional layer in the table which enables us to protect intricate or sensitive data based upon our needs.

Explanation:

View is a virtual table which executed a pre compiled query. It is a table in which selective portion of the data can be seen from one or more tables. Queries are not allowed in indexed views and adding column is not possible. Views can be looked as an additional layer in the virtual table which protects sensitive data.

what is the best motivation that you can do/give to make your employees stay? ​

Answers

i'd give fringe benefits to them every month

Explanation:

to encourage them to work on the mission statement and the business goal

What is the most efficient way to control the type of information that is included in the .msg file when a user forwards a
contact to another user?
Use the "As an Outlook Contact option.
Create an additional contact with limited information.
o Use the Business Card option.
Create the contact using the XML format.

Answers

Answer: Use the "As an Outlook Contact option.

Explanation:

The most efficient way to control the type of information which will be included in the .msg file when a contact is forwarded to another user by a user is to use the Use the "As an Outlook Contact option.

After clicking on the contact that you want to forward it to, then click on forward, click on contact and click on As an Outlook Contact. You can then complete the email message, after which you'll click on send.

Other Questions
What is a theme of The Adventure of the Blue Carbuncle 15 points There are 2144 chickens and ducks in a farm. The total number or chickens and cows are 1456. The are 5 times as many ducks as cows. The farmer sells each chicken for 12 dollars. How much will he earn by selling all his chickens? Successfulness of the Competition policy in South Africa - supportyour argument by means of 5 examples How can you find the slope of a line from a table of values of the line? What is the main difference between acne vulgaris and acne rosacea?a. Acne rosacea is a result of an infection and can be treated with antibiotics, while vulgaris is not caused by an infection.b. Acne rosacea is a result of an infection and can be treated with antiviral medication, while acne vulgaris is not caused by an infection.c. Acne vulgaris is a result of an infection and can be treated with antibiotics, while acne rosacea is not caused by an infection.d. Acne vulgarus is a result of an infection and can be treated with antiviral medication, while acne rosacea is not caused by an infection. Knowing what you have learned about customer service situations, why do win-lose situations often become lose-lose situations? What can an employee do to avoid this from occurring? Please help me I put 100 points for anyone who helps me What are the steps for creating a bookmark? 1. Place the insertion point where the bookmark should appear. 2. Click the tab. 3. In the group, click Bookmark. 4. When a dialog box opens, name the bookmark, and click . 5. To see bookmarks within the document, go to Backstage view and click Options. 6. In , select Show Bookmarks to have them appear as a locked cursor within the document. Which of these government policies pursues the economic goal of freedom?A. avoiding a budget deficitB. increasing the money supplyC. ending a recessionD. protecting consumers from fraud How can quality control affect production? which of the following is a section used in the Cornell method of note taking?1. Cues2. Outline3. Active4. Images The perimeter of a rectangle is 16 inches. The equation that represents the perimeter of the rectangle is , where l represents the length of the rectangle and w represents the width of the rectangle. Which value is possible for the length of the rectangle?7 in.8 in.9 in.10 in. Which sentence from the advertisement insults people who don't have a Superforce 80?A There is a limited supply.B Everyone is asking for a Superforce 80.C Are you in for a treat?D Don't be left behind in the 20th century. Tools, skills, and science knowledge is known as what? Which industry was attracted to Southern California's sunny weather? *A. lumber industryB. movie industryC. mining industrysugar how do I find the value of e any help please NEED AN ANSNER VERY QUICKLYWhich statement is factual?1.Asexual reproduction produces offspring that are identical to the parent.2.Sexual reproduction allows for diploid gametes to combine to increase genetic variation.3.Asexual reproduction leads to the formation of haploid gametes.4.Sexual reproduction does not require the production of gametes. In the workplace, information peers may be inclined to disclose information about their personal lives.TrueFalse Centre City enacts an ordinance that bans the distribution of all printed materials on city streets. Diners Caf opposes the citys latest "revenue-enhancing" measurea tax on prepared food salesand wants to protest by distributing handbills. In Diners suit against the city, a court would likely hold the ban on printed materials to be ZB=Round your answer to the nearest hundredth.B?9