GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

The Sixth Amendment right to counsel applies only after a de…

The Sixth Amendment right to counsel applies only after a defendant has been convicted.

Read Details

Scenario:Maria is arrested for burglary. She cannot afford a…

Scenario:Maria is arrested for burglary. She cannot afford an attorney, and the court appoints one. During trial, her attorney fails to investigate an alibi witness who could confirm Maria was out of state during the crime. Maria is convicted. Question:Using the Strickland v. Washington standard, explain whether Maria could claim ineffective assistance of counsel. Include both prongs of the test in your answer.

Read Details

In Gideon v. Wainwright (1963), the Supreme Court held that:

In Gideon v. Wainwright (1963), the Supreme Court held that:

Read Details

Problem 1: Even Numbers Write a Python program that prompts…

Problem 1: Even Numbers Write a Python program that prompts the user to enter an integer. Then, display all of the even numbers from 0 up to and including the number entered by the user. Requirements Prompt the user for a number. Output only the even numbers. Hint: There are multiple ways to do this, such as using the modulo operator or a clever use of setting ‘in range’ steps. All solutions that produce correct output willl be accepted. Display the numbers on one line, separated by spaces. Your loop should be inclusive of the number you enter if its an even number. I.E if you set it to count to 10, remember to print out 10! Sample Run Please enter a number: 11 0 2 4 6 8 10 Problem 2: Counting Vowels in Names A company wants to identify the most common vowel used in people’s names. Write a Python program that uses a while loop with a sentinel to repeatedly prompt the user to enter names and count how many times each vowel appears. Requirements Use a while loop. Use a sentinel value of “stop” to end the loop. Prompt the user for string input.  Count the total number of times each vowel appears in the input string: a e i o u After input is complete, print the total count for each vowel. Hint: Convert each user entry to lowercase before comparing it with the vowel characters. Then use a series of if statements to check whether the entry matches “a”, “e”, “i”, “o”, or “u”. Sample Run Please enter a name: Emilie a: 0 e: 2 i: 2 o: 0 u: 0 Note: Your full program should continue asking for names until the sentinel value of “stop” is entered. Problem 3: Multiplication Table Write a Python program that creates a multiplication table. Prompt the user for: the number of rows (X) the number of columns (Y) Then output a multiplication table containing X rows and Y columns. Requirements Prompt the user separately for the number of rows and columns. Use nested loops to generate the table. Each value in the table should be the product of its row number and column number. Sample Run How many rows do you want?: 4 How many columns do you want?: 3 1 2 3 2 4 6 3 6 9 4 8 12 Problem 4: Character Type Counter Write a Python program that prompts the user for a string. The string may contain: uppercase letters lowercase letters digits other characters, such as punctuation or symbols Your program must use a for loop to determine how many characters of each type appear in the string. Requirements Use a for loop to examine each character in the string. Count how many characters are: uppercase letters lowercase letters digits other characters Print the results in the format shown below. Example If the user enters: H!H0wAreY0u The output should be: There are 4 upper case letter(s) There are 4 lower case letter(s) There are 2 digit(s) There are 1 other character(s) Reminder Before submitting your quiz, make sure: your code follows the directions for each problem, your loops are used correctly, your output is easy to read, and your program runs without errors. PyCharm Formatted # 1. Prompt the user for a number. # Then, find all the even numbers from zero to that number.# # Sample run: # Please enter a number: 11 # Output: 0 2 4 6 8 10# 2. A company wants to know the most common vowel in people’s names. Using a while loop with a sentinel,# write a Python snippet that prompts for names and counts the number of times each vowel is used.# # Sample run: # Please enter a name: Emilie# Output: # a: 0# e: 2# i: 2# o: 0# u: 0# 3. Write a Python snippet that creates a multiplication table. Prompt the user for the number of rows (X) and the number of columns (Y). # Then output a multiplication table containing X rows and Y columns. #Sample run:# How many rows do you want?: 4# How many columns do you want?: 3# Output:# 1 2 3 # 2 4 6# 3 6 9# 4 8 12 # 4. The program prompts the user for a string.# This string could be made up of any upper case letter, lower case letter, digit, or others (such as symbols)# The program must use a for-loop to determine how many of each type is made up in the string. These values are then printed.# If the string entered was H!H0wAreY0u# The output would be:# There are 4 upper case letter(s)# There are 4 lower case letter(s)# There are 2 digit(s)# There are 1 other character(s)

Read Details

Which of the following best describes “probable cause”?

Which of the following best describes “probable cause”?

Read Details

Which of the following is required for a lawful arrest?

Which of the following is required for a lawful arrest?

Read Details

Las cosas y sus categorías Write a definite article (el, la,…

Las cosas y sus categorías Write a definite article (el, la, los, or las) in the first blank for each item. Then complete the sentence using a category word from the word bank. For example: El francés es una lengua.  una cosa en el salón de clase     una materia          una mujer       una fecha     una estación á       é       í       ó       ú       ü       ñ       ¡       ¿ 1. [BLANK-1] psicología es [BLANK-2]. 2. [BLANK-3] invierno es [BLANK-4]. 3. [BLANK-5] primero de enero es [BLANK-6]. 4. [BLANK-7] profesora de español es [BLANK-8]. 5. [BLANK-9] silla es [BLANK-10].

Read Details

Landmark cases like Mapp v. Ohio and Gideon v. Wainwright ex…

Landmark cases like Mapp v. Ohio and Gideon v. Wainwright extended federal protections to the state level.

Read Details

The ruling in Faretta v. California (1975) established:

The ruling in Faretta v. California (1975) established:

Read Details

Which of the following typically holds inmates serving sente…

Which of the following typically holds inmates serving sentences of one year or less?

Read Details

Posts pagination

Newer posts 1 … 3,463 3,464 3,465 3,466 3,467 … 97,285 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top