Test Case 1 == One Year Interest Calculator == \n| How much money do you have? \n 100 ENTER What's the inte rate? n rest 8.25 ENTER Interest earned: $8.25 \n New balance: $108.25 \n Test Case 2 == One Year Interest Calculator ==|\n How much money do you have? \n 13000 ENTER What's the interest rate? \n 4.25 ENTER Interest earned: $552.5 \n New balance: $13552.5 \n
Q: If a user orders 0 or a negative number of pizzas, print a message telling them that's an invalid…
A: we will ask the user to enter the number of pizzas. we will check if the number entered by the user…
Q: Enter the ticket price of the item or zero t o quit 100 Is this item reduced y/n? y Is this item…
A: The main objective of the python program, main.py is to prompt the user to enter the value of item…
Q: A cashier distributes change using the maximum number of five dollar bills, followed by one dollar…
A: Code comments have been added in the code for better explanation of the code for your reference.
Q: A customer want to buy 6 items. He has only 50.50 OMR with him. The price of the products are…
A: Solution: Algorithm to check weather all the 6 products can be bought :…
Q: 178. Test cases ensure that all the statements are executed atleast once. a. True b. False c. May be…
A: Test cases ensure that all the statements are executed at least once. This Statement is True.
Q: Ahmed wants to Furnishes his office. He has 160.55 OMR. He wants the following products Desk with…
A: Algorithm:- Step 1 Start Step 2 initial_amount = 160.55 Step 3 desk_price = 52.30 Step 4…
Q: 1. Find the area of a rectangle 2. Find the area of a square 3. Find the area of a Circle If user…
A: print("1. Find the area of a rectangle");print("2. Find the area of a square");print("3. Find the…
Q: Each morning, a dairY ships local grocery store. The cost of producing one liter of milk is $0.38,…
A: define cartoon_cap=3.78,costperLiter=0.38, profitpercartoon=0.27 declare…
Q: Consider the following code. What should be the smallest value assigned to num such that the number…
A: Ans : the smallest value that assigned to num such that the number 3 is printed from the last…
Q: Write TRUE if the truth value of the statement is incorrect, otherwise write FALSE. Arctic Ocean is…
A: answer starts from step 2
Q: your teachers age al of which is divided by Peters age then added by 1 Cody quickly inputted al the…
A: Here in this question we have asked to write a program which take the programmer age , teacher age…
Q: A cash dispenser has only 100 riyal, 50 riyal and 10 riyal notes. Write a shell script to enter the…
A: The script declares and initializes three riyal notes variables like RIYAL_100, RIYAL_50, and…
Q: A customer want to buy five items. He has only 75.0 OMR with him. The price of the products are…
A: Define mouse←6.50, keyboard←10.50, webcam←15.00, flashDrive←5.25, headphone←7.50, pen←1.00 Define…
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: This program will make use of Scanner class defined in java.util package used to take user specific…
Q: Tomato plants are sold in flats of 8 plants each. Write an expression that will tell the number of…
A: Number of flats is always an integer value. If there is a fraction part then take the next integer…
Q: Q2 (4 points): Write a java comparison statement for each of the following: Example: question: if…
A:
Q: Create an application that finds the greatest common divisor of two positive integers entered by the…
A: Given: Create an application that finds the greatest common divisor of two positive integers entered…
Q: Having a secure password is a very important practice, when much of our information is stored…
A: Note: Programming language is missing in the question. So we will answer this program in Python…
Q: MPUTER PROGRAMMING... Choose all the valid variable names. A. point_2_point B.…
A: Choose all the valid variable names. A. point_2_pointB. wage125C. savings#accountD. _grossE. annual…
Q: A customer want to buy five items. He has only 70.0 OMR with him. The price of the products are…
A: Flowchart and algorithm represent how a problem can be solved in several steps programmatically. A…
Q: Based on the statement below, what will be the result? Int age = 10; Select one: O a age stores only…
A: 1. B - Age will have a value of 10 Int age = 10; In this answer is B age will have a value of 10…
Q: Test Case 1 Enter a name \n Mike ENTER Enter an age \n 18 ENTER Enter a city \n Los Angeles ENTER…
A: GIVEN:
Q: Write if statements for each of the following. Possible outcomes are underlined. The if statements…
A: Note: Possible outcomes is not underlined. for last part is not clear[it look incomplete] 1.…
Q: You need to choose a password for computer account. The rule is that the password must consist of…
A: Solution:
Q: Ahmed wants to Furnishes his office. He has 160.550 OMR. He wants the following products: Desk with…
A: Algorithm: Store total Amount in a variable. store values of desk chair file cabinet paper shredder…
Q: Q3/A- Estimate the result when you execute the following code by using Qbasic programming For m take…
A: Lets take m =85 85>=80 Print "very good"
Q: a. What are the values of i, j, k after the if statement runs? inti= 3, j= 2, k=9; if (i 60)…
A: The complete solution is attached in the below steps:- 1) the value of i is printed first then the…
Q: input into the variable "value"? a) value >> cin; b) cin >> value; c) value > cin; b) cin >> score;…
A: Answer: 1)Option B is correct: cin>>value; 2) Option D is correct: cout<<score; 3)…
Q: write a program named MarshallsRevenue
A: The following program named MarshallsRevenue that prompts a user for the number of interior and…
Q: Although the following code segments are syntactically correct, each contains an error. Locate the…
A: Original code: hours = 12; if (hours > 40); cout << hours << " hours…
Q: Ask the user to enter a day of the week in 3 letters. * Respond with the meal plan for that day.…
A: PROGRAM: //Header file import java.util.Scanner; //Defining the class class WeeklyMeakPlan {…
Q: 1. Ask the user the number of hours worked 2. Capture the value of the hours variable from keyboard…
A: The main objective of the python program is to prompt the user to enter the number of hours. Read…
Q: alue of strlen("Good luc
A: Below the Program output strlen("Good luck!\n") A.9 B. 10 C. 11…
Q: . Write an application for a college’s admissions office. Prompt the user for a student’s numeric…
A: PROGRAM INTRODUCTION: Import the required header files. Start the definition of the main function.…
Q: C# (Sharp): Make a console application that will ask user for a name and age. If the age is less…
A: Program using System;public class age{ public static void Main() { int age; string name;…
Q: Bank Utara Malaysia (BUM) has decided to give dividend to its accournt hoklers at thie end ul 2021.…
A: Find the required code in C++ given as below and output :
Q: Write an application that prompts a user for a month, day, and year. Then display the appropriate…
A: java program is as shown below: Java Program to Display Dates in Different Format // Importing…
Q: Write an application for a college’s admissions office. Prompt the user for a student’s numeric high…
A: import java.net.Socket; import javax.swing.JOptionPane; public class AdmissionTest {…
Q: 13. Book Club Points Serendipity Booksellers has a book dub that awards points to its customers…
A: Dear Student, As no programming language have been mentioned , I am programming it in c++.
Q: program Credit Card Validator - Takes in a credit card number from a common credit card vendor…
A: Here, I add 2 program for credit card validator. may be this is helpful for you. #include…
Q: a. What are the values of i, j, kafter the if statement runs? inti= 3, j= 2, k-9; if (i 60)…
A:
Q: A customer want to buy five items. He has only 220.0 OMR with him. The price of the products are…
A: Given: Table is given with item name and price (OMR) as columns. Each item has some price. Goal: We…
Q: case D: defauit valdeeverage = true: break valdBeverage = faise; (valdBeverage true) cout e "How…
A: C++ program for the above problem is given below: #include <iostream>#include…
Q: You arrive in front of a bridge that you must cross to reach a village from dark Crossing the…
A:
Q: Use Raptor to answer the following questions: Shannon and Jasmine bowl as a team. Each of them…
A: Output Shannon’s average, Jasmine’s average, and the team’saverage. You will need the following…
Q: A compound Boolean expression that will evaluate to True if and only if both of its subexpressions…
A: The answer is AND. Below is the explanation with the code:
Q: Using Java, create a craps game using JOptionPane Dialog box. Conditions in the game prompt users to…
A: The goal of the program: User enters start to balance, then bet. The game is then played. If the…
Q: ENGE ACTIVITY 4.4.6: If-else expression: Operator chaining. Write an expression that will print…
A: Code: userinput = int(input())if(userinput>=9 and userinput<=12): print("in high…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
- In Chapter 1, you created two programs to display the motto for Marshall’s Murals. Now write a program named MarshallsRevenue that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. Compute the expected revenue for each type of mural. Interior murals cost $500 each, and exterior murals cost $750 each. Also, display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones.An employee uses the following coding logic for the company’s resource access: String result = authenticate( . . . ) ; if(result.equals (ACCESS DENY) ) // do stuff after authentication fails e l s e // do stuff after authentication succeeds Suppose values returned by the authenticate function include ACCESS OK and ACCESS DENY. Is there a security flaw in the program? If so, explain and rewrite the code.You need to choose a password for computer account. The rule is that the password must consist of two lowercase letter (a to z) followed by one capital letter (A to Z) followed by four digits (0, 1, …, 9). For example, the following is a valid password:Find the total number of possible passwords.
- Ask the user for the name? Ask the user to input five test scores and calculate the total of the test scores and Average of the test Scores. Using the following 10-point grading scale for the average tests score, display the grade and reward the gift certificate using the formula. Average testscore Grade Gift Certificate formula 90 and above A 120% of average testscore 80–89 B 60% of average testscore 70–79 C 20% of average testscore 60–69 D 0% of average testscore Please display Name of the user, five test scores, total, Average test score, Grade and the Gift Certificate amount based on above user input and calculations. programming language - PythonA serendipity bookseller has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: If a customer purchases 0 books, he or she earns 0 points. If a customer purchases 1 books, he or she earns 5 points. If a customer purchases 2 books, he or she earns 15 points. If a customer purchases 3 books, he or she earns 30 points. If a customer purchases 4 or more books, he or she earns 60 points. W rite a program that asks the user to enter the number of books that he or she has purchased this month and then displays the number of points awarded. using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms; namespace Chapter_4_Problem_6___Seth{public partial class bookClubPoints : Form{public bookClubPoints(){InitializeComponent();}}} C# please code with this contextA cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. For example, 19 yields 3 fives and 4 ones. Write a single statement that assigns the number of one dollar bills to variable numOnes, given amountToChange. Hint: Use the % operator. #include <stdio.h> int main(void) { int amountToChange; int numFives; int numOnes; scanf("%d", &amountToChange); numFives = amountToChange / 5; /* Your solution goes here */ printf("numFives: %d\n", numFives); printf("numOnes: %d\n", numOnes); return 0;
- Using C# in Microsoft Visual Studio create an application that displays the total for a customer’s visit . The application should have the following value-returning methods: OilLubeCharges —Returns the total charges for an oil change and/or a lube job, if any. FlushCharges —Returns the total charges for a radiator flush and/or a transmission flush, if any. MiscCharges —Returns the total charges for an inspection, muf fler replacement, and/or a tire rotation, if any. OtherCharges —Returns the total charges for other services (parts and labor), if any. TaxCharges —Returns the amount of sales tax, if any. Sales tax is 6% and is charged only on parts. If the customer purchases services only, no sales tax is charged. TotalCharges —Returns the total charges. The application should have the following void methods, called when the user clicks the Clear button: ClearOilLube —Clears the check boxes for oil change and lube job. ClearFlushes —Clears the check boxes for radiator flush and…Which of the following statements is logically equivalent to "If you live in a mansion, then you have a big heating bill."? If you do not live in a mansion, then you do not have a big heating bill. If you have a big heating bill, then you live in a mansion. If you live in a mansion, then you do not have a big heating bill. If you do not have a big heating bill, then you do not live in a mansion.whenever you enter the date of birth as gibberish it still takes it, I want it to be a conditional statement where it forces the user to input the date of birth in the format of mm/dd/yyyy and it has to be an 18 years of age for the year if younger than that it will give an input validation message saying you have to be 18 to create an account, import tkinter as tk class ATM: def __init__(self): self.accounts = {} def create_account(self): first_name = first_name_entry.get() last_name = last_name_entry.get() dob = dob_entry.get() address = address_entry.get() debit_card = debit_card_entry.get() while len(debit_card) != 16 or not debit_card.isdigit(): debit_card = input("Invalid debit card number. Enter debit card number (16 digits): ") pin = pin_entry.get() while len(pin) != 4 or not pin.isdigit(): pin = input("Invalid pin. Enter 4-digit pin: ") self.accounts[debit_card]…
- A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child’s ticket is $6.00.) It should display a report similar toMovie Name: “Wheels of Fury”Adult Tickets Sold: 382Child Tickets Sold: 127Gross Box Office Profit: $ 4582.00Net Box Office Profit: $ 916.40Amount Paid to Distributor: $ 3665.60NOTE:Assume the theater keeps 20 percent of the gross box office profit. make sure answer should be in c++CHALLENGE ACTIVITY 4.2.2: Basic if-else. 344614.2153518.qx3zqy7 Jump to level 1 Write an if-else statement for the following:If user_tickets is equal to 6, execute award_points = 1. Else, execute award_points = user_tickets.Ex: If user_tickets is 3, then award_points = 3.Each box of Healthy Crunch breakfast cereal contains a coupon entitling you to a free package of garden seeds. At the Healthy Crunch home office, they use the weight of incoming mail to determine how many of their employees are to be assigned to collecting coupons and mailing out seed packages on a given day. (Healthy Crunch has a policy of answering all its mail on the day it is received.) If the answer is a whole number, write a whole number. If it has one decimal place, write one decimal place. Otherwise, round off to two decimal places. If the answer is greater than 999, put a comma. a. Solve for Σx = Blank 1 b. Solve for Σy = Blank 2 c. Solve for Σx2 = Blank 3 d. Solve for Σy2 = Blank 4 e. Solve for Σxy = Blank 5 f. Solve for Pearson's r = Blank 6 g. Solve for the variance = Blank 7 h. Solve for the slope of the simple linear regression line = Blank 8 i. Solve for the y-intercept of the simple linear regression line = Blank 9 j. If the weight of the incoming mail is 30 lb, what…