A box of cookies holds 24 cookies, whereas a container holds 75 boxes. Create a software that questions the user for the total number of cookies to be sent and then produces the number of boxes and containers required to send the cookies. If there are insufficient cookies to fill a box, it should be rejected and the number of remaining cookies output. If the number of boxes ordered does not fill the container, the remaining boxes may be discarded, and the total number of boxes should be produced.
Q: A safe has 5 locks v,w,x,y,z all of which must be unlocked for the safe to open The keys to the…
A: To safely open the safe one should follow a pattern to open the safe and there are large…
Q: Which design pattern (singleton, adapter, factory, observer) is NOT applicable here and why? Mention…
A: As per the above toys management application, we cannot use singleton deign pattern. Singleton…
Q: 1. Suppose you are testing the Messenger application. Write down the possible test cases based on…
A: A test case is the set of actions, preconditions, expected results determined by the tester to check…
Q: You are supposed to make a system for a bakery. The bakery owner plans to reduce the staff and…
A: To write: To write a menu-driven C program that displays the bakery items and the price. Program…
Q: Write a program that displays, validates, and processes a form for entering information about a…
A: A program for the given criteria is as follows, <!DOCTYPE…
Q: Write a PHP program which iterates the integers from 1 to 10. You will need to create and declare a…
A: The Answer start from step-2.
Q: using Java Write a grading program for a class with the following grading policies: 1. There are…
A: #include<iostream>using namespace std;struct record{double quiz1;double quiz2;double midyear,…
Q: orrectly this time else directly downvote F
A: Required: Answer correctly this time else directly downvote Find bugs in the given
Q: The Barking Lot is a dog day care center, to assist the Barking Lot staff manage the record of the…
A: #include<iostream>#include<string>using namespace std;int main(){ // For printing…
Q: The following is the GUI (graphical user interface): Process Payroll txtName Name: Hours Worked…
A: Given The answer is given below.
Q: A platform has space for at most n people at any one time. People are only admitted when the number…
A: Given that, A platform has space for at most n people at any one time. People are only admitted when…
Q: In Java use the fork command to implement the following. Write a program (we’ll refer to this…
A: Given, The answer is below.
Q: This code includes one test case. However, when checking for correctness, other test cases will be…
A: void create_procs(){ pid_t child, grandchild; int child_status, grandchild_status;…
Q: In fluid Dynamics, the reynolds number Re is a dimensionless number used to determine the nature of…
A: Requirements:- Matlab... Don't transfer to electrical. This is only for computer science. Else I…
Q: • Comments begin with /* and end with */. No nesting is allowed; the first */ after a/* closes the…
A: Here i write answer IN yes or…
Q: 1. True or False * 2 points BufferedReader br = new BufferedReader(new…
A: 1. True or False BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); will…
Q: Write a program that will allow the user to input his/her name, user id, and password and perform…
A: import java.util.Scanner;public class Main{ public static void main(String args[]) {…
Q: Using Python, write a script that accepts a series of sales transactions from the user. For each of…
A: # Create list to hold deparment names and sales values d_n = [] s = [] # Take input until…
Q: Write a Java program to create two packages and calculate the sum of series using the formula given…
A: Java code: Package 1: package package1; //creating packagepublic class oddSeries {…
Q: Please do it in c++ as soon as possible.Little Johnny Bubbles appreciates going through hours before…
A: Here have to determine about code for bubble strike.
Q: Implement a menu of options for a user to modify the roster. Each option is represented by a single…
A: Note : Since it is not mentioned which language to be used so i preferred to use C language.…
Q: In a shopping mall, the parking garage contains a single lane that holds up to 50 vehicles. However,…
A: In the above-given question, the question statement can be model as follows : The parking locations…
Q: Write an application that displays a menu system. The menu system should allow the user to select…
A: Program: import java.awt.GridLayout;import java.awt.event.ActionEvent;import…
Q: Create a java project that simulate bugs movement. You need to write a class “Bug" that models a bug…
A: Given: bud.txt
Q: Please do it in c++ as soon as possible. Little Johnny Bubbles appreciates going through hours…
A: Here have to determine about code for bubble strike.
Q: A Bank wishes to generate the program that will handle all its clients. For this, the Bank requires…
A: A Bank wishes to generate the program that will handle all its clients. For this, the Bank requires…
Q: Example #include // include io library using namespace std; int main() { // Begin main function int…
A: Explanation-Create variables named tax_rate, tax and total for the code.Declare the variables as…
Q: Counter Update" button is clicked, the counter should be incremented by 1 and set in the…
A: Given:
Q: RGB LED fading colors project. Write comments for the below C code explaining each line. Code is…
A: RG B LED fading colors project. The comments for the given code is given below:
Q: A company is going to provide their employee with a bonus which will be based on the length of their…
A: Answer: Company is going to provide their employee with a bonus which will be based on the length of…
Q: Inside this module, import random and blackout_utils, and define the following global variable,…
A: You can use a global variable within other functions by declaring it as global within each…
Q: Write a banking application where a user will enter their current balance and a transaction. The…
A: Find the required code in C given as below and output :
Q: ere is a garage where the access road can accommodate any number of trucks at one time. The garage…
A: #include <iostream> using namespace std; class Truck { private: int id; public : Truck(int…
Q: #include #include int main(int argc, char *argv[]) { pid_t pid; int status; pid = fork(); if (pid…
A: #include<sys/types.h>#include<sys/wait.h>#include<stdio.h>#include<stdlib.h>…
Q: What is the output from the following code: IdentifyMyParts a = new IdentifyMyParts();…
A: We have to discuss what is the output of the following Code: *) We have to used public class…
Q: msft.institution.africa/plugintile.php/ Questlon 5 Write a C# program using Visual Studio for the…
A: Algorithm: Start Ask the user to enter username and password If username and password are correct…
Q: Suppose that in a kitchen there is only one four-burner stove to be used both for frying pans and…
A: Answer: I have done code and also I have attached code as well as code screenshot output.
Q: Consider the following piece of code for the use of intent: public void onActivityResult(int…
A: For the correct answer please refer to the solution given in the step 2. Kindly go from the given…
Q: XYZ Airport has two currency exchange offices. ABC Conversions services the north and e side of the…
A: Please find the cpp code below:
Q: Write a program that will monitor the flow of patients in a large hospital. The program should…
A: #include<iostream> #include<ctime> using namespace std; class Patient { public: int ID;…
Q: For this task, you are to create a neat table of values that is outputted to the screen. The table…
A: Fix the precision to be 2 to display the costs and this can be done using iomanip header methods
Q: Write a java program which collect the user details such as Customer Name, Mabile Number, Item Name…
A: The java program is given by import javax.swing.*; // Needed for Dialog Box /** * This program…
Q: Write a program for an instructor whose course has the following policies: Two quizzes, each…
A: /the second classclass Grades{// variablesString studentName;int testMarks = 0;int midtermMark =…
Q: Retype or copy, and then run the following code; note incorrect behavior. Then fix errors in the…
A: Please find the answer below :
Q: After the execution of the following lines of code which variables are aliases? int[] a = { 1, 2, 3…
A: We need to find the correct option.
Q: CHALLENGE 3.16.3: Using indexOf). ACTIVITY Print "Censored" if userlnput contains the word "darn",…
A: Here I have created the file and then taken input from the user. Next, I have used a conditional…
Q: Implement a menu of options for a user to modify the roster. Each option is represented by a single…
A: Since programming language is not mentioned, we'll do it in C++. The programming methodology for the…
Q: Given an application program where it shares a variable X for its tasks' execution, one of the…
A: In this question we have to understand the scenario and judge the condition to prevent the race…
Q: Suppose that in a kitchen there is only one four-burner stove to be used both for frying pans and…
A: Answer: I have written algorithms of this question in brief explanation.
A box of cookies holds 24 cookies, whereas a container holds 75 boxes. Create a software that questions the user for the total number of cookies to be sent and then produces the number of boxes and containers required to send the cookies. If there are insufficient cookies to fill a box, it should be rejected and the number of remaining cookies output. If the number of boxes ordered does not fill the container, the remaining boxes may be discarded, and the total number of boxes should be produced.
Step by step
Solved in 3 steps with 1 images
- Installation of a Shopee Billboard Max. score: 100 You are installing a billboard and want it to be at the maximum height. The billboard will have two steel supports, one on each side. The height of each steel bracket must be equal. You have a number of rebar rods that can be welded together. For example, if the bars are of length 1, 2, and 3, they can be welded together to form a length of 6 brackets. Return the maximum possible installation height of the billboard. Return 0 if the billboard cannot be installed.Programming Language: Java Direction: Write a program to determine the number of PASSED and FAILED out of 15 inputted names with the corresponding grade. Restrict the inputted grade for each name in the range of 50 to 100, in which 75 is the passing grade. If the inputted grade is not on the range, the program will remind the user of a message for the accepted range for the grade and allows the user to re-enter a grade. NOTE: MUST ADD COMMENTSInstructions: For each Exercise below, write your code in an IDE and run your code within the IDE as well. Once you have satisfied the Exercise requirements, paste your code below under the corresponding. Exercise 1:The Magic 8-Ball is a super popular toy used for fortune-telling or seeking advice developed in the 1950s! Write a magic8.cpp program that will output a random fortune each time it executes. The answers inside a standard Magic 8-Ball are: ● It is certain ● ● ● . ● ● ● ● ● It is decidedly so Without a doubt Yes - definitely You may rely on it As I see it, yes Most likely Outlook good Yes Signs point to yes Reply hazy, try again Ask again later Better not tell you now Cannot predict now Concentrate and ask again Don't count on it My reply is no . My sources say no ● Outlook not so good ● Very doubtful
- Design and implement an application that plays the High-Low guessing game with numbers. The program should pick a random number between 1 and 100 (inclusive) then repeatedly prompt the user to guess the number. Every time the user guess, inform him/her whether the guess is correct, or the guess is high or low.Continue accepting guesses until the user guesses correctly or chooses to surrender. Use a sentinel value to determine whether the user wants to quit. Count the number of guesses and display that value when the user guesses correctly. At the end of each game (either by quitting or a correct guess) prompt to determine whether the user wants to play again. Continue playing until the user chooses to stop. When the user stops playing, display the number of correct guesses and surrenders.The c++program should use suitable selection and repetition structures. The input process, guessing process and output must be organized into appropriate functions.hi this my firs time i need ur help i want to solev this proplem by uesing online java compiler A registration officer in an academic institution wants to display the Student transcript in a given semester after entering the required student details. A student is characterized by an ID, full name, the semester in which he/she is registered and other details. The student can take from 3 to 4 modules every semester and has two assessments in each module. You are requested to write the program that will help the officer to display the indicated transcript using Classes, methods, arrays and various control statements.The following shows an example of execution of this program.Questions:a. What is the role of a normal constructor? Create the class Student, which must have a normal constructor and at least 5 attributes. Note: The attributes must include all the details mentioned in the scenario and others of your choice. The marks of the student in different modules must be stored using…Design and implement an application that plays the Hi-Lo guessing game with numbers. The program should pick a random number between 1 and 100 (inclusive) and then repeatedly prompt the user to guess the number. On each guess, report to the user that he or she is correct or that the guess is high or low. Continue accepting guesses until the user guesses correctly or chooses to quit. Use a sentinel value to determine whether the user wants to quit. Count the number of guesses, and report that value when the user guesses correctly. At the end of each game (by quitting or a correct guess), prompt to determine whether the user wants to play again. Continue playing games until the user chooses to stop.
- MSIT 501/BMME 8050 Project #1 Description: You are working for a carpeting and flooring company. You need a program to create an estimate for customers. There are three types of rooms that customers might have: square, rectangle and circle. Yes, some people have houses with rooms that are circles. The program should ask for the customer’s name and address. Then ask for the dimensions of the room, in feet. It should then determine the cost to put flooring in the room. We compute flooring based upon the area of the room in square feet. Flooring material costs $2.00 per square feet and installation costs $1.50 per square foot. The equations for calculating the square footage of rooms are as follows: • Square: area = side1 ^ 2 • Rectangle: area = side1 * side2 • Circle: area = radius ^ 2 * pi Once the user has entered the information, the program should print out the customer information. Then it should print the total square feet in the room followed by the estimate for the materials and…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…The language is C# Write a program named TestScoreList that accepts eight int values representing student test scores. Display each of the values along with a message that indicates how far it is from the average. An example of how the results should be output is as follows: Test # 0: 89 From average: 6 Test # 1: 78 From average: -5
- Hands-On Project 6-1 In this project you will program the actions of a sign-up form in which users must supply a user name, email address, and password for a new account. Passwords must be at least eight characters long and contain at least one letter and one number. As a validation test, the password must be entered twice to confirm that the user did not inadvertently mistype the password. If the password does not match the required pattern or if the two passwords are not identical, the password field should be flagged as invalid. A preview of the form in which the passwords are mismatched is shown in Figure 6-38. Figure 6-38 Completed Project 6-1 Do the following: Use your code editor to open the project06-01_txt.html and project06-01_txt.js files from the js06 ► project01 folder. Enter your name and the date in the comment section of each file and save them as project06-01.html and project06-01.js, respectively. Go to the project06-01.html file in your code editor and link the…You want to create a program to enroll in classes. You've narrowed the class list down to just a few classes that computer science students might need. In your program, first the user will select a department and the program will tell them what classes are available from that department. Then the user picks a class, and the program will tell them what sections are available. After the user picks a section, the program will print a success message. The departments, classes and sections are as follows: Sample run: Select a department: (1)Computer Science (2)Math (3)Science 1 Select a class: (1)Starting Computing (2)Data Structures (3)Algorithms 3 Select a section: (1)Section 102 (2)Section 202 1 You've been enrolled in Section 102 of Algorithms! The user should input an integer in the range of the choices you give them. For example, a user cannot input 3 if you only present 2 choices.Ensure you are doing input validation. Your program should output Please enter a valid input. if the…A shop collects the following information from its customers: 1. Full name (first name, last name, and optional middle initial) 2. Address (street name and number, city, zip code, and state) 3. Phone number 4. Email 5. First visit/service date 6. Most recent visit/service date 7. Total amount charged 8. Current balance and description of the last service You are to write a program that allow the shop to manage their customers. The shop needs the following functionalities: 1. Search for a customer by:a. Nameb. Phone numberc. Email (The result of the search would have similar option as in the “List all customers” option below) 2. List all customersa. Select and edit a customer b. Delete a customer 3. Add a new customera. Prompt for appropriate data fields 4. Get account consolidation sheet that shows total charges and total balance of all customers 5. Get the records of the biggest 5 spenders (spend the most) 6. Exit and save all changes (all changes to the customers should be stored…