GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is the primary characteristic of a Python dictionary?

What is the primary characteristic of a Python dictionary?

Read Details

What is the name of the module that allows you to copy, dele…

What is the name of the module that allows you to copy, delete and/or rename files?

Read Details

What is the result of the following code? while True:      h…

What is the result of the following code? while True:      hours=int(input())      rate=float(input())      if hours

Read Details

The American Tire Company has a data store (a dictionary).  …

The American Tire Company has a data store (a dictionary).  Below is the inventory of tires and price per tire: All-Season Tire $120.99 Winter Tire 150.50 Off-Road Tire 180.30 Touring Tire 130.40 Develop a program to display a menu and allow customers to enter the type of tire they would like to purchase, how many tires they want and then display to them the total price.  The base price of the tires will come from your dictionary.  If the customer is a veteran, they receive an 7% discount off the base price.  If the customer is a first responder, they receive a 6% amount. Lastly, if the customer is a senior (over 65) they receive a 4% discount. If a customer meets multiple criteria, they are eligible for the largest discount. If the customer wants to add a wheel alignment service to their purchase, add a flat $150 to the price of the tires. Lastly, calculate 7% tax on the total amount (including the alignment).  Include at least one method of input validation. The program should accept input for multiple customers (looping). Save your program as Tiresxxxx where xxxxx is your last name.   Points awarded as below: Use of dictionary 10 Loop execution 10 Awarding the largest discount 10 Input validation 10 Display appropriate messages 5 Comments 5 Total Points:  50

Read Details

What do the \D, \W and \S shorthand character classes signif…

What do the \D, \W and \S shorthand character classes signify in regular expressions?

Read Details

Tuples are mutable; meaning that the tuple items can be alte…

Tuples are mutable; meaning that the tuple items can be altered.

Read Details

Considering the examples we have done in class to show how P…

Considering the examples we have done in class to show how Python programs can be used to automate the manipulation of text files, file organization, web scraping, manipulating Excel spreadsheets and automating keystrokes and mouse clicks, which of those do you feel is the most useful task?  Why?

Read Details

What is the percent dissociation of a benzoic acid solution…

What is the percent dissociation of a benzoic acid solution with pH = 2.59? The acid dissociation constant for this monoprotic acid is 6.5 × 10-5.

Read Details

A buffer solution is prepared by dissolving 0.200 mol of NaH…

A buffer solution is prepared by dissolving 0.200 mol of NaH2PO4 and 0.100 mol of NaOH in enough water to make 1.00 L of solution. What is the pH of the H2PO4-/HPO42- buffer if the Ka2 = 6.2 × 10-8 ?

Read Details

Calculate the pH for an aqueous solution of lysine at 25

Calculate the pH for an aqueous solution of lysine at 25

Read Details

Posts pagination

Newer posts 1 … 27,182 27,183 27,184 27,185 27,186 … 85,117 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top