
Concept explainers
Hello, I have attempted to complete this problem and I am experiencing problems with the way I am inputting the answer. The following is the assignment prompt:
"Write a
I have received the answer for this, but I am convinced that I am not entering the the solution in the proper syntax to successfully run the code. Any help with this would be awesome!
Respectfully.

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- Can you solve this question with the flowchart showing clearlyarrow_forwardThe prompt asks: Write a function that calculates the amount of money a person would earn over a period of years if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of years and call the function which will return the total money earned in dollars and cents, not pennies. Assume there are 365 days in a year. function totalEarned(years) { } var yearsWorked = parseInt(prompt('How many years will you work for pennies a day? ')); alert('Over a total of ' + yearsWorked + ', you will have earned $' + totalEarned(yearsWorked));arrow_forwardTo determine whether a variable is being passed to a function by value or by reference, you will need to examine_________ .a. the statement that invoked the functionb. the function headerc. the statements entered in the functiond. either a or barrow_forward
- The Barking Lot is a dog day care center. Design a flowchart or pseudocode for the following:a. A program that accepts data for an ID number of a dog's owner, and the name, breed, age, and weight of the dog. Display a bill containing all the input data as well as the weekly day care fee, which is $55 for dogs weighing less than 15 pounds, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, and $125 for dogs weighing more than 80 pounds.b. A program that continuously accepts dogs' data until a sentinel value is entered, and displays billing data for each dog.c. A program that continuously accepts dogs' data until a sentinel value is entered, and displays billing data for dog owners who owe more than $100.d. A program that continuously accepts dogs' data until a sentinel value is entered, and displays billing data for dogs that weigh less than 20 pounds or more than 100 pounds.arrow_forwardPYTHON PROGRAMMING For this assignment, you will create a program the converts a temperature of Celsius into a Fahrenheit value or converts a Fahrenheit temperature to a Celsius value. The requirements are: 1. Prompt the user for a temperature value. The input value can be a floating-point number and must end with C or F. 2. Based on the value entered, convert the number to other temperature scale. For your reference, here are the formulas for converting the temperatures (so you do not have to hunt for them): Celsius = (Fahrenheit – 32) x (5/9) Fahrenheit = (Celsius x (9/5)) + 32 3. Print the computed value followed by a C or F as needed.arrow_forwardHow do you: Construct a program that calculates the course overall grade point average (GPA). The program must input 3 scores for each of the categories listed in the calculation of the GPA provided below with exception of the final examination. The maximum score for all quizzes is 20 points each, the maximum score for all homework assignments is 50 points each, the maximum score for all tests and all programming assignments is 100 points each, and the maximum for the final examination is 120 points. You can select the scores that you make on each of these assessed items. Assignments Scale Homework 10 % Programming Assignments 25 % Quizzes (Weekly) 15 % Tests 30 % Final Examination 20 % You must develop the formula for calculating the GPA using the information provided in the table. For example if the final examination has a maximum score of 120 and you get an 85. Then your weighted score for the final examination is calculated using the…arrow_forward
- Develop a Python function named "display_bookstore_info" to convey details about "Bookworm Haven." The function should include the following information: 1. A warm welcome message and the precise location of the bookstore. 2. An overview of the book categories available, highlighting bestsellers, fiction, non- fiction, science fiction, and children's books. 3. Any ongoing promotions or loyalty programs, such as "Buy 3 books, get a 10% discount with our Bookworm Rewards Card!" 4. Operational hours specified for each day of the week. 5. Contact details, including a customer support email (support@bookwormhaven.com) and a customer service hotline (1-800-READNOW). Ensure to call the function to present the provided information.arrow_forwardCreate the following, in Python: You have a business that cleans floors in commercial space and offices. You charge customers $0.45 per square yard, and some customers require multiple cleanings every month. You need two custom functions for your business. The first function takes a floor's length and width in feet and returns the area in square yards. The second void function takes the area, charge per square yard, and number of monthly cleanings as arguments and prints the cleaning cost. This latter function uses selection (if...else) logic to print different output for single and multiple monthly cleanings (see Sample Outputs). Use a properly named constant for the charge per square yard, too.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





