I need the program to print the line "Meal options:" only when there is enough money.
Q: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
A: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
Q: Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers…
A: PROGRAM: #while loop while True: #Getting input from the user phoneNum = input('Enter the number…
Q: The owners of the Annan Supermarket would like to have a program that computes the weekly gross pay…
A: Define the class Employee with data members as pay rate for hour, hours worked, first name and last…
Q: Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers…
A: Answer:
Q: write a program named MarshallsRevenue that prompts a user for the number of interior and exterior…
A: The below given C# program will obey the following rubrics: In the main () method, declaring all…
Q: Suppose you are given the following information: Integer:first_day. This is the day on Jan 1…
A: #include <bits/stdc++.h>using namespace std; int main(int argc,char *argv[]) { int…
Q: Write a program that reads two pieces of information: the hourly wages and the number of hours…
A: Required: Write a python program to calculate the net salary based on given instructions. all the…
Q: Write a program for calculating the simple interest on a loan when the initial prin- cipal amount…
A: PROGRAM CODE: public class Main{ public static void main(String[] args) {…
Q: Modify the above program to compute the side area, total area, and volume of a cylinder and the area…
A: PROGRAM STRUCTURE: Include the required header files. Write the definition of the first function.…
Q: d. Write a program to convert English unit to metric as unit by using switch - case statement. The…
A: The question asks to make a program in such a way that it would display a menu where many metric…
Q: Write a program that reads in an investment amount, the annual interest rate, and the number of…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program that request for two fertilizer name and their respective yields. Your program…
A: Since, programming language is not mentioned so I have used C++ programming language. Create a class…
Q: Write a c++ Develop a version where the player makes bet. If the Player guesses the first time, the…
A: C++ code to construct a game to guess number by betting money
Q: Modify the above program to compute the side area, total area, and volume of a cylinder and the area…
A: The program is written in java
Q: Question 2 Write a program which prints the following message in the output screen. *List of Items*…
A: #print first lineprint(" "+"*"*11+"List of Items"+"*"*11)#print second lineprint("Item\t\tprice…
Q: The New Telephone Company has the following rate structure for long a. The regular rate for a call…
A: As not mentioned I have solved the question in C++ language Code:…
Q: Write a program which given an initial three digit number such as. three_digit_number = 123 prints…
A: Program In c # include <stdio.h># include <conio.h>#include<math.h>int main( ){int…
Q: Write a program that reads two excel sheets. One of these sheets contains a list of items names. The…
A: CODE: # Import library to read excel fileimport openpyxl # Reading the sheets in the…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Since programming language is not mentioned in the question, we will answer this question in the C++…
Q: Write a program thatreads in investment amount, annual interest rate, and number of years and…
A: Program Plan: Import java util.scanner which contains utility classes for scanner object create the…
Q: This assignment is to modify the rock-paper-scissors game f. As before, each of two players enters…
A: Program Approach Create an enum variable Choice with the three keys ROCK, PAPER, and SCISSORS with…
Q: Use your previous working Java program as a starting point (Project 3). Create another function that…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: (THIS IS THE GIVEN CODE) int main(int argc, char *argv[]) { int first_day = atoi(argv[1]);…
A: I have implemented the given requirements as mentioned above in C++. Proper validations are in…
Q: I always find myself asking at the end of the month, “Where did all that money go?" I'm sure this…
A: Purpose of the program: This program prompts the user to enter the number of categories for which…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: ********************************************* // iostream in C++ is the standard library which…
Q: The manager of a football stadium wants you to write a program that calculates the total ticket…
A: - We have to create a code for the ticket sales in C++. - We have to create a flowchart also.
Q: A program that accepts insurance policy data, including a policy number, customer last name,…
A: Answer: I given in the form in hand written
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Objective: This program would compute the total cost of woods of different types where the costs for…
Q: Write a program to use enumeration type to represent the seven colors of the rainbow, i.e. red,…
A: switch (choice) { case 1: cout << "Red color is chosen. The next color is…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Since you are not specifying any language for implementation, I am using C++. Program #include…
Q: Write a program to read basic salary (bsalary) and sales (sales) then calculate and print the net…
A: C++ program for above : #include <bits/stdc++.h> using namespace std; int main() {…
Q: Your program will calculate the cost of orders on Amazon.com witha quantity and price, and add…
A: Program in Java: import java.io.*;public class Ordering_System{ public static void main(String…
Q: Finally, the program should print a summary report with the following details: o Number of cities. o…
A: given
Q: 2. Write a program that takes an amount in pesos and breaks it down to bills (1000, 500, 100, 50,…
A: Write a program that takes an amount in pesos and breaks it down to bills (1000, 500, 100, 50, 20)…
Q: Write a program that reads the marks of a student in the test (te), midterm (mid), assignment…
A: I am uploading the handwritten solution in the next step. As there is no programming language…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Purpose of the program: This program computes the total cost of different types of lumber for an…
Q: Write a program with C++ that reads in investment amount, annual interest rate, and number of years,…
A: C++ program to calculate the future invest value from the given value , Investment amount , Monthly…
Q: For this assignment, write a program named PizzaPrices that prompts the user to make a choice for a…
A: c# program for Pizza Price using System; class MainClass { public static void Main (string[] args)…
Q: 1. Write a program that will read an employee name (use your Name as input in employee name),…
A: Solution - Programming Language - C All necessary comments are included in program code. Program…
Q: Q: Write a program that will show the following output of the string "Rroduct. Name: HP Laptop…
A: The given program is a simple case of displaying given output. Print statements can be used to…
Q: Modify program P34 1.cpp to compute the side area, total area, and volume of a cylinder and the area…
A: #include<iostream> #include<cmath> using namespace std; const double PI = 3.14159; //…
Q: A client in a store is buying 5 items: shirt, trouser, hat, shoes, and perfume. Write a program that…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
A: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
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: You are working for a lumber company, and your employer would like a program that calculates the…
A: Program Approach: Declare necessary variables in main function. Define float bf method which…
Q: Write a program that will determine the salary of an employee based on his or her rank as follows:…
A: Let's understand step by step : Since programming language is not given so using C++. Now steps…
Q: A company is hiring university grads. Write a program in which the HR enters the total number of…
A: A company is hiring university grads. Write a C++ program in which the HR enters the total number of…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: PROGRAM: //header files for I/O operations #include<iostream> #include <iomanip> using…
Q: diagram last two digits of your student number (For example, if your student number is 1910602041,…
A: Here value of n is 34 So T = 34%25 = 1 i=2 j=0 i<9 -> True j=2 j<10 -> True T= T+j+i =…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- A store is having a promotion where every item is on sale for 20% off. This means that the discounted price is ___% of the original price. You pay sales tax of 6.2% for the discounted price. This means the price with tax is ___% of the discounted price.Here,Ex: Item 1Enter the item name:Chocolate ChipsEnter the item price:3Enter the item quantity:1 Item 2Enter the item name:Bottled WaterEnter the item price:1Enter the item quantity:10 Add the costs of the two items together and output the total cost. Ex: TOTAL COSTChocolate Chips 1 @ $3 = $3Bottled Water 10 @ $1 = $10 Total: $13.MOLLY esc ť Ť → ← C Another option in Club Keno is to play the "Kicker." This is an option that doubles your bet, but you can get a random multiplier to your winnings. About 2/3 of the time there is no multiplier, though. Let's consider what the expected value is when playing the kicker while only betting on only one number. Outcome Kicker Probability Net Value x1 x2 x3 x4 x5 x10 Any What is the expected value when using the Kicker option and choosing one number? $ (Round to the nearest cent.) beasley Xem/ZMAIHIL12 X M MyOpenMath https://www.myopenmath.com/assess2/?cid=166287&aid=11856365#/full f1 1 Correct 1 Correct 1 Correct 1 Correct 1 Correct 1 Correct 0 Correct If you had not played the kicker, the table would be: Probability Submit and End 1 ? Outcome 1 Correct 0 Correct Q Type here to search If you had not played the kicker, what would the expected value be? $ (Round to the nearest cent.) 12 2 0.25 0.75 f3 0.15625 0.046875 0.0234375 0.01171875 0.00585938 0.00585938 # 0.75 3…
- bob employs a painting company that wants to use your services to help create an invoice generating system. the painters submit an invoice weekly. they charges $30 per hour worked. they also charge tax -15%. bob likes to see an invoice that display all the information- number of hours, the charge per hours, the total Before tax and total After tax. since this is an invoice, we also need to display the name of the company (painting Xperts) at the top of the invoice. display all of the information on the screen. Using Pseudocode, develop an algorithm for this problem.Create a tibble conttaiiscount_customer=1ning driver names of instance where free_wine=1,discount_customer=1 and the order contained more than 4 pizzas.(There can be repeated names). Assign the tibble to Q1 Create a Variable named ratio that is the ratio of bill to pizza , called ratio.What is the mean of that value (call the value mean_ratio) ?Assign this to Q2 For each day of the week , what is the variance in pizzas? Assign this to Q3You have just started a sales job in adepartment store. Your pay consists of a base salary and a commission. The base salaryis $5,000. The scheme shown below is used to determine the commission rate. Note that this is a graduated rate. The rate for the first $5,000 is at 6%, the next$5000 is at 8%, and the rest is at 10%. If your sales amounts to $25,000, the commissionis 5,000 * 6% + 5,000 * 8% + 15,000 * 10% = 2,200. Your goal is toearn $30,000 a year. Write a program to find the minimum sales you have to generatein order to make $30,000.
- Create the following variables: Gender (e.g. male or female) Age (e.g. 0, 1, 2, etc.) Handedness (e.g. left, mixed, right) Average number of minutes of exercise each week (e.g. 120, 180, 0, 30, etc.). Average number of daily calories consumed (e.g. 1400, 2500, etc.) Average number of cigarettes smoked per day (e.g. 0, 20, 5, etc.) Average number of alcoholic beverages consumed each week (e.g. 2, 20, 0, etc.) Self-Esteem (measured on a scale from 0-10 - e.g. 3, 8, 2, etc.) General Life satisfaction (measured on a scale from 0-10 - e.g. 2, 10, etc.). Enter data for each of the variables. Pay attention to the information in the parentheses next to the variables listed above as this will guide you to the type of information that needs to be entered. Try to make your data varied (e.g. do not make all your participants age 20). Please make 10 of your participants male and 10 of your participants female. Part 2: Using StatCrunch calculate the descriptive statistics (e.g. measures of central…Change value of isMomHappy to true and run the code. Provide your source code and the output var isMomHappy = false; //promise var willIGetNewPhone = new Promise( function (resolve, reject) { if(isMomHappy){ var phone = { brand: 'samsung', color:'black' }; resolve(phone); } else { var reason = new Error('mom is not happy'); reject(reason); } } ); //call our promise var askMom = function() { willIGetNewPhone .then(function (fulfilled){ //yay, you got a new phone console.log(fulfilled); //output: {brand: 'sumsung', color: 'black' } }) .catch(function (error) { //oops, mom didnt buy it console.log(error.message); //output: 'mom is not happy' }); }; askMom();In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the numberof points to risk and a second prompt asks the player to choose either high or low. The player rollstwo dice and the outcome is compared to the player’s choice of high or low. If the dice total is between2 and 6 inclusive, then it is considered “low”. A total between 8 and 12 inclusive is “high”. A total of7 is neither high nor low, and the player loses the points at risk. If the player had called correctly, thepoints at risk are doubled and added to the total points. For a wrong call, the player loses the points atrisk. Create a DiceRollGame application that uses a DRPlayer object based on this specification. TheDRPlayer object should have two Die member variables that represent the dice. The Die class shoulduse a random number generator to determine the outcome in a roll() method. Application outputshould look similar to:
- Given the following code, mark the lines that would be printed to the console. Order does not matter. GameObject go = new GameObject(10); MobileObject mo = new MobileObject(11); NamedObject no = new NamedObject(12, "Ganon"); mo.setMovement(5); no.setLevel(2); System.out.println(go.MOVABLE); System.out.println(no.MOVABLE); System.out.println(no.getMovement()); System.out.println(mo.ID); Choices: 10 false 1 11 true null 2 12 20 Nothing PrintsSpecial consideration needs to be made for the selection of the product category. Allowthe user to make a selection between the following categories:Implement the code according to the giving class diagram [hint: you need to calculate WRT and HRT percentages [WRT=Salary*(80/100)] Formula: Total Salary = Salary + WRT + HRT) Note: solve as soon as possible with in one hour use oop concepts