The Barking Lot is a dog day care center. Write a program that accepts data for an ID number of the 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 under 15 pounds, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, and $125 for dogs over 80 pounds.
Q: What default value is assigned to each of the following variables?a. Integerb. Doublec. Booleand.…
A: Answer: In java, a. The Default value of Integer is 0 b. The Default value for Double is 0.0 c. The…
Q: ● Prompt a user to input numerical values. If a wrong value is given, prompt the user again until a…
A: Answer : code is given at bottom 1.Taking user input through input box. when check button is pressed…
Q: A variable should hold the name for a player on a sports team. Which data type should the variable…
A: Please find the answer and sample Java program in the below steps.
Q: Create the Flow Chart and JAVA. Input the following: Sex[Male or Female], Course[Indicate all…
A: In questions with many parts, we must solve the first 3. Except the city constraint, all other…
Q: Write a program to continue getting the date of birth of a user in this format and display the day…
A: Here I written Python code for given problem. I hope you like it.
Q: sing C#, write an application that computes the area of a circle, rectangle, and cylinder. Display a…
A: According to the Question below the Solution: Output:
Q: 1 original_total = "5.45" 2 donation = "e.55" 3 4 #You may modify the lines of code above, but don't…
A: Given data, Write some code that will print the customer's total and how much they donated. This…
Q: Write a program that accepts four parameters "lowerLimit", "upperLimit", "A", and "B". The program…
A: Algorithm Start Var l, u Accept l from user Accept u from user for i=l to u, go to step 6 else to…
Q: Which of the data types has the size that is variable? a) int b) struct c) float d) double
A: Question. Which of the data types has the size that is variable? int struct float double
Q: Loco Burrito has hired you to develop a new food ordering system for its customers. Each customer…
A: Code in next step
Q: The program prints the user's identifier (which could be an email address, a phone number, or a…
A: Below I have provided the java code of the given program. Also, I have attached the output of the…
Q: QUESTION 11 a) What is the output of the code below? 6 9 12 Syntax Error b) Trace the following…
A: The output following JavaScript code Trace line by line
Q: You've been hired by Data Dandelions to write a C++ console application that displays population…
A: Below is the C++ program: - Explanation: - In the given program, four arrays are used to store the…
Q: Write a program to input each staff's information of a company (Including name, status of Covid-19…
A: //c program #include <stdio.h> int main() { char name[5][20],status[5]; int…
Q: C1. Write an assignment that assigns to a variable named red_change the percentage change in the red…
A: Required: C1.Write an assignment that assigns to a variable named red_change the percentage change…
Q: C CODE PLEASE 3.29 Fixed LAB*: Program: Automobile service invoice (1) Output a menu of automotive…
A: #include <stdio.h>#include <string.h> int main(){ char ch1[10], ch2[10];…
Q: named boston pass. This program will tell the user whether they passed a course or not. Please read…
A: I have written the code below:
Q: Q3: complete the function that returns the area of a segment of a circle with radius r and angle…
A:
Q: ?lf a column is defined as NUMBER(5,2), which of the following is true The column can store a total…
A: Given:
Q: What is the output of the following code segment? Assume user input is: soccer football void…
A: Task :- identify the output for given C++ code.
Q: Modify your working program from Assignment #19 so that when the user enters data into the Selling…
A: Description : Entry widgets are the basic widgets of Tkinter used to get input, for example text…
Q: Which of the following is a valid declaration for phone number? А. int phoneNumber; В. char…
A: Given:
Q: ost. For example, Your Student ID= 011193127. So, last_three_digits_of_your_ nclude = a, b; t…
A: Answer (1):- Manually tracing the given code:- Here, We will start tracing the whole code from the…
Q: Write a program to generate a random number between 1 - 100, and then display which quartile the…
A: Program Instructions:Use the header files, constants, seed and random number generator given in the…
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: import java.util.*; public class ThreeLetterAcronym{ public static void main(String[] args) {…
Q: Write a program that reads students’ names followed by their test scores. The program should output…
A: Required: Write a program that reads students’ names followed by their testscores. The program…
Q: Create a program that receives a student's name as input and then outputs a three-character ID for…
A: ⦁ We have to write a program to get the initials of a name in lowercase and print that as a id…
Q: You are playing a game that has two dice – one die has 6 sides numbered 1 through 6 and the second…
A: In the program below, I have generated random numbers to simulate the dices but you can modify the…
Q: (a) Write the pseudo code to calculate the electricity bill of a consumer based on the current…
A: PSEUDOCODE: Declare the required variables. Input the value of a number of units that are consumed…
Q: Suppose you want to maintain the highest and lowest temperatures for every day of a year. What kind…
A: We will use a 2-D array of size double arr[365][2], at 0 index we will store min temp and at 1 index…
Q: Describe how the arguments are used in the following code: def…
A: EXPLANATION: Their are two general functions along with the main function that is present in the…
Q: int numl, num2, num3; double length, width, height; double volume; numl = 6; num2 = 7; num3 = 4; %3D…
A: a. Given statement: volume =box(length, width, height); Here, "box" is the method which is passed…
Q: The following needs to be in python For this application, you will need to create a Python…
A: Code: #!/usr/local/bin/python3 def main(): # initalizing filename and valid months filename =…
Q: Write a program that displays a temperature conversion table for degrees Celsius and degrees…
A: The given is the problem to print the converted value of celsius degree to farenheit degree. The…
Q: function phone (inputtext) { var phonenum = /^\d{8}$/; if(inputtext.value.match(phonenum)) { return…
A: The answer is b.8 Given code var phonenum = /^\d{8}$/ indicates phone number should contain 8…
Q: As part of the discussion forum for this unit, you will be solving a programming problem from the…
A: Modulus operator(%) is used to remainder of division.
Q: What is wrong in the following code?income = 232323if income <= 10000:tax = income * 0.1elif…
A: In Python, the if-elif-else statement is used to conditionally execute a statement or a block of…
Q: public String toString () Gets a string in the following format: RestaurantBill…
A: Algorithm: Start Create a class called RestaurantBill with cost and service as its attributes…
Q: Programming Challenge (Upload the .cpp file) A long-distance carrier charges the following rates for…
A: Solution : ---- as the requirement specification is given in the problem statement , here is the C++…
Q: Given a pH value, return whether that value is 'alkaline', 'acidic', or 'neutral'. Return…
A: pH = int(input("Enter the pH value: ")) # taking pH value from user if pH < 0 or pH > 14:…
Q: 1# Write a program that allows users to choose from one of three shapes: Squares, Circles or (right)…
A: As programming language is not mentioned so we are solving this in C++
Q: The Barking Lot is a dog day care center. Write a Python program that accepts data for an ID number…
A: Note: we are only allowed to solve one question in one post. to get answers to others, please post…
Q: char myStr[26]; char yourStr[26] = "Arrays and Strings"; a. Write a C++ statement that stores…
A: a) Complete program code: //including necessary header file #include <iostream> #include…
Q: The code below produces a 5 x 10 box of question marks. Convert the code into a function called…
A: In your code, in function header to make drawChar as a default argument, with default value 'X', you…
Q: 13. Which data type should be used to hold the number of people who have entered a store? A.Integer…
A: Solution is given below :
Q: bob employs a painting company that wants to use your services to help create an invoice generating…
A: Display "Please enter the working hours in week" Declare a variable workingHours Input the number of…
Q: Many documents use a specific format for a person's name. Write a program whose input is: firstName…
A: This program can be done in a very easy way. Programming instruction: First, take the input from the…
The Barking Lot is a dog day care center. Write a
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- XYZ Company, LLC uses a program to manage the information of their employees. The program gets the name of the employee, number of hours worked and rate per hour. It computes the salary by multiplying the number of hours worked with rate per hour. If the salary is more than 1000, tax is computed as 5% of the salary, otherwise, tax is computed as 2% of the salary. The program will display the name of the employee, salary and tax.1. The Barking Lot is a dog day care center. Write a Python program that accepts data for an ID number of the 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 under 15 pounds, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, and $125 for dogs over 80 pounds. 2. Mark Daniels is a carpenter who creates personalized house signs. He wants an applicatino to compute the price of any sign a customer orders, based on the following factors: * the minimum charge for all signs is $30 * If the sign is made of oak, add $15. No charge is added for pine. * The first six letters or numbers are included in the minimum charge; there is a $3 charge for each additional character. * Black or white characters are included in the minimum charge; there is an additional $12 charge for gold-leaf lettering. Write a program that accepts data for an…Payment = Principal [rate ((1 + rate)months)] [(rate + 1)months - 1] For the formula to compute monthly payment, see Listing 2.9, ComputeLoan.java. (Financial application: loan amortization schedule) The monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining princi- pal). The principal paid for the month is therefore the monthly payment minus the monthly interest. Write a program that lets the user enter the loan amount
- In cengage mindtap The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: The month number (beginning with 1) The current total balance owed The interest owed for that month The amount of principal owed for that month The payment for that month The balance remaining after payment The amount of interest for a month is equal to balance × rate / 12. The amount of principal for a month is equal to the monthly payment minus the interest owed.In C++ please, using basic programming one coding The main menu should show the available options: Show the roster: Displays all the player names and jersey numbers in a numbered list. Ex: 1. Susan Martinez (33), 2. Jake Smith (21), etc. Add a player: Prompts the user to type the player's full name and jersey number. Then adds the player to the roster. Remove a player: Displays the roster and prompts the user to enter the number of the player to remove. Then removes the player from the roster. Quit: Quits the program. The program should display the main menu after the user shows the roster, adds a player, or removes a player. The program only terminates when the user chooses the quit option. Data validation should be used where appropriate. Ex: The user should not be able to choose an option that doesn't exist or delete a player that doesn't exist. The roster should be kept in alphabetic order by the players' full names. Ex: If Alice Chang (9) is added to a roster with Jake Smith and…LAB ASSIGNMENTS, CONT. How many years are in your rainfall sample? 2 Rainfall info for year #1: Enter rain for month # 1: 2 Enter rain for month # 2: 2 Enter rain for month # 3: 2 avg_rainfall.py: Write a program that collects rainfall data and calculates the average rainfall for a user-defined number of years. Enter rain for month # 4: 2 Enter rain for month # 5: 2 Enter rain for month # 6: 2 Enter rain for month # 7: 2 Ask the user for the number of years in their study - use a small number to test, like 2, because you have to collect 12 months of data for each year! Enter rain for month # 8: 2 Enter rain for month # 9: 2 Enter rain for month #10: 2 Enter rain for month #11: 2 Enter rain for month #12: 2 Total rain in inches for year #1 = 24.0 Year #1 Monthly Avg Rainfall = 2.00 Rainfall info for year #2: The outer loop will run once for each year (hint: use range function). Enter rain for month # 1: 1 The inner loop will run once for each of 12 months, and ask the user for a…
- C# Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. If the account number is valid, output The account number is valid. If the account number is invalid output Invalid. If the account number is too short or too long output Account number invalid - it must have 4 digits.The company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salaryCompute the income tax due on taxable income entered by the user, given the data as shown in the following table. Be sure to include error checking to make sure the user does not enter a negative number. Assume all entries are integer values. Taxable Income Tax Due From To $0 $49,999 $0 + 5% of amount over $0 $50,000 $99,999 $2,500 +7% of amount over $50,000 $100,000 $6,000 + 9% of amount over $100,000 (Provide the following: Pseudocode; Flowchart) Dago 2 of 5
- PROGRAMMING PROBLEM The inventory of a shoe store lists shoes by stock number. With each stock number, there is associated a style number in the range of 0 to 50, the number of pairs in each size (sizes range from 3 to 14) and a price. A program is to be written to keep track of the inventory. The user is given the following choices: enter a new record, display a record, change the price of the stock item, or change the number on hand. When specifying a record the user may give either the stock number, or the style number. The array index can be used as a stock number. If the user decides to change the stock on hand, the program should ask which sizes will have their stock on hand changed. The program should be designed to run indefinitely, keeping track of changed in stock.Air Pacific Limited, Fiji's international airline, operates international and domestic services around the Pacific and to North America and Hong Kong. It has its head office at the Air Pacific Maintenance & Administration Centre in Nadi. You are required to write a program that passengers can use to chose seats for aircraft FJ501. The aircraft has 13 rows with 5 seats in each row. Rows 1 to 4 are first class, the remaining rows are economy class. The program should display the seating plan for the aircraft. Empty seats are shown with x and the seats that are booked will have the passenger name (first name plus initials of other names) on it. To reserve a seat, they have to provide their ticket type (First Class or Economy Class), the seat they prefer and their name (first name plus initials of other names). The program verifies that the seat is empty then only bookings are done. Passengers are also allowed to check the seats they are booked for by providing the passenger name (first…The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: The month number (beginning with 1) The current total balance owed The interest owed for that month The amount of principal owed for that month The payment for that month The balance remaining after payment The amount of interest for a month is equal to balance × rate / 12. The amount of principal for a month is equal to the monthly payment minus the interest owed.