Design a flowchart or pseudocode for the following: b. A program that continuously accepts data about text messages until a sentinel value is entered, and displays all the details.
Q: In cold weather, meteorologists report an index called the windchill factor, that takes into account…
A: Code: #include <iostream>#include <fstream>#include<cmath>#include<iomanip>…
Q: 2. A certain company gives commission to each of their salesmen based from the type of appliance…
A: Here there are multiple questions so I have answered the question which is upper in the pic. Put…
Q: . A technician takes X hours to visit the stores in a couple of streets in one shift, and when he…
A: As per the given conditions, the technician is able to take X hours to finish a shift. as of The…
Q: During Eid, it is a tradition for every father to give his children money to spend on entertainment.…
A: Input-Output Format: The first line of the input contains a single integer TT denoting the number…
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Input-Output Format: The first line of input will contain a single integer T, denoting the number of…
Q: When a car arrives at the toll gate, the gate is closed. the gate opens as soon as the driver has…
A: In order to decide this, the machine is in one of the following six state at any moment during the…
Q: 4. A mini 2m? solar panel energy harvester is designed to convert sun light (temperature) into…
A: ANSWER:-
Q: A common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth takes longer…
A: CODE IN C #include<stdio.h> // function to return the number of days in february for a…
Q: value of x(t) = rect (t/4) cos(0.5πt) will be
A: It is defined as the value required for the system to perform the functions.
Q: A rectangular piece of cardboard, 40 inches 40 in. long by 22 inches wide, is used for making a…
A: Solution:: a) Polynomial expression for the Volume v in terms of x…
Q: 5. Suppose that $4,000 is placed in a bank account at the end of each quarter over the next 10…
A:
Q: 2. A certain company gives commission to each of their salesmen based from the type of appliance…
A: 2. A certain company gives commission to each of their salesmen based from the type of appliance…
Q: Max Z= x, +8x, Subject to X +3x, 56 2x, + x, = 8 X1, X, 20
A: Here is code in Python as follows for Linear optimization problem using Large M method. Code is as…
Q: You have N dollars and you have a list of k items L1, ..., Lk that you wish to purchase from an…
A: The answer to the above-given question is given below.
Q: A common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth takes longer…
A: def days_in_feb(user_year): if user_year%100 == 0: #A century if user_year%400…
Q: Objective/s: Apply logical functions given certain conditions 1. Open a new workbook and type the…
A: excel, and computation of logical functions in excel:
Q: A mini 2m? solar panel energy harvester is designed to convert sun light (temperature) into energy…
A: As Energy to be stored formula used is : Energy=watt* hours exposed to sunlight […
Q: The electricity accounts of residents in a very small town are calculated as follows: a) If 500…
A: ip = [200, 500, 700, 1000, 1500]; for i=1:5 un = ip(i); ct = 0; if un <= 500 ct = un * 0.02;…
Q: 10 t = 0:.01:40*pi; 11 12 f = [e.^cos (t) - (2*cos (4*t))- ((sin (t/12)).^5)]; 13 Efor s=0.1 14 E 15…
A: The problem is based on plotting of graph in matlab using iterative statements. NOTE: '%' symbol in…
Q: A ski rental agency has n pairs of skis, where the heigh are n skiers who wish to rent skis, where…
A: Greedy Approach: For the above problem, the optimal solution will be when both the arrays are…
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Program plan: Implement a loop that runs the program for a specified number of test cases. Get the…
Q: Bianca is preparing special dishes for her daughter’s birthday. It takes her a minutes to prepare…
A: programming language is not mentioned we are giving solution in c++
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Input-Output Format: The first line of input will contain a single integer T, denoting the number…
Q: Homework #2-Xiaoyu Liu Maria Anguiano's current salary is $65,000 per year, and she is planning to…
A:
Q: This problem is known as the Three prisoners problem. Three prisoners, A, B and C, are in separate…
A: In this Three prisoner problem we will determine whether A is correct or C is correct by the given…
Q: 10 t = 0:.01:40*pi; 11 12 f = [e.^cos (t) - (2*cos (4*t))- ((sin (t/12)).^5)]; 13 Qfor s=0.1 14 E 15…
A: The problem is based on plotting graphs in matlab.
Q: During the tax season, every Friday, the J&J accounting firm provides assistance to people who…
A: Please see the below step for solution.
Q: If f(x) = 2.x^3 and g(x) = x + 1. What is (g o f) (x)?
A: In this question, we are given two functions f(x) and g(x) and asked the value of (g o f) (x) . gof…
Q: Maurice McDonald owns McDonald resturant that is currently located in New Jersey, now he is planning…
A: Here, we have to develop a python code to find the maximum profit Maurice can make during the…
Q: During the tax season, every Friday, the J & J tax accounting firm provides assistance to people who…
A: Given During the tax season, every Friday, the J & J tax accounting firm provides assistance…
Q: program in python the following problem We ask that you assist the ITPC by indicating the maximum…
A: The python code for the above question can be solved in a way as following: We are checking for the…
Q: A bank teller has money available in the form of 4 denominations of 1, 5, 50, and 100. Whenever a…
A: Lets see the solution.
Q: x - 32 z= sin(x) + 4 :x = 0 :x>0) main () { int z,x; cin>>x; .... else z=sqrt(x); cout0) z=x-32;…
A: Given If x<0 then z= x-32 If x =0 then x =sin(x) +4 If x>0 then z = x To implement given…
Q: x² – 3xy + y2 = A iven the system of equations { where A = 2 and B = 8 x² + y? = B ind the third…
A:
Q: It can be said that statement P is a necessary condition for statement Q if Q ⇒ P is true. In other…
A: Introduction: A prime number is a natural number greater than 1 that is not a product of two smaller…
Q: Gotham City National Bank is open Monday through Friday from 9 a.m. to 5 p.m. From past experience,…
A:
Q: Suppose that you want to open a saving account in a private bank and deposits "some" equal amounts…
A: As requested , we have attached your answers in the excel sheet image format. Please Find attached.
Q: For tax purpose an item may be depreciated over a period of several years. With the straight-line…
A: Actually, program is a executable software that runs on a computer.
Q: The Dash Cell Phone company charges customers a basic rate of $10 per month to send text messages.…
A: The given problem is to be solved in below three forms: Pseudocode Flowchart C++ Program The…
Q: One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and…
A: - We need to solve the given watermelon split problem. - We are using C++ here.
Q: An arcade machine accepts $0.50 and $0.75 tokens. Once the machine accepts at least $1.00, it stops…
A: DFA refers to deterministic finite automata. DFA machine reads an input string one symbol at a time.
Q: For tax purpose an item may be depreciated over a period of several years. With the straight-line…
A: Actually, program is a executable software that runs on a computer.
Q: An amortization calculator is used to determine the periodic payment amount due on a loan (typically…
A: A = P(i + i/((1+i)^n-1)) where, A = periodic payment amount. P = amount of principle. i = periodic…
Q: In order to discourage excess electric consumption, an electrical company charges its customers a…
A: Please note the given values in the output do not reflect the given rate of 7.5 for the first 250 kW…
Q: When a car arrives at the toll gate, the gate is closed. the gate opens as soon as the driver has…
A: From the given data: The objective is to Construct the state transition table for the above…
Q: You are given an exam with questions numbered 1, 2, 3, . . . , n. Each question i is worth pi points…
A: Given that: Let S(i) be the highest possible cumulative score from questions I through n. Any such…
Q: Assume that the total number of students in the university is 2000. Also, assume that the number of…
A: To determine the number of students not taking calculus and not taking physics n(A' ∩ B')). Given,…
Q: The Dash Cell Phone Company charges customers a basic rate of $5 per month to send text messages.…
A: Designing Pseudo Code: Declare required variables which are in use of this code. Call the function…
The Dash Cell Phone Company charges customers a basic rate of $5 per month to send text messages. Additional rates are as follows:
- The first 100 messages per month, regardless of message length, are included in the basic bill.
- An additional three cents are charged for each text message after the 100th message, up to and including 300 messages.
- An additional two cents are charged for each text message after the 300th message.
- Federal, state, and local taxes add a total of 14 percent to each bill.
Design a flowchart or pseudocode for the following:
b. A program that continuously accepts data about text messages until a sentinel value is entered, and displays all the details.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Three prisoners have been sentenced to long terms in prison, but due to over crowed conditions, one prisoner must be released. The warden devises a scheme to determine which prisoner is to be released. He tells the prisoners that he will blindfold them and then paint a red dot or blue dot on each forehead. After he paints the dots, he will remove the blindfolds, and a prisoner should raise his hand if he sees at least one red dot on the other two prisoners. The first prisoner to identify the color of the dot on his own forehead will be release. Of course, the prisoners agree to this. (What do they have to lose?) The warden blindfolds the prisoners, as promised, and then paints a red dot on the foreheads of all three prisoners. He removes the blindfolds and, since each prisoner sees a red dot (in fact two red dots), each prisoner raises his hand. Some time passes when one of the prisoners exclaims, "I know what color my dot is! It's red!" This prisoner is then released. Your problem…Q 6 : A bank teller has money available in the form of 4 denominations of 1, 5, 50, and 100.Whenever a customer demands some amount, the teller attempts to minimize the use ofnotes by distributing the highest value denomination notes, followed by the lesser valuenotes. The objective is to minimize the minimum number of notes disbursement. Forexample, to disburse Rs. 319/-, the teller will provide 3 notes of 100, 0 notes of fifty, 3notes of five, and 4 notes of one. You task is to design a computer program which will inputthe required amount, and will display the number of notes required for eachdenomination.Gotham City National Bank is open Monday through Friday from 9 a.m. to 5 p.m. From past experience, the bank knows that it needs the numbers of tellers listed in the file P04_104.xlsx. Gotham City Bank hires two types of tellers. Full-time tellers work 9 a.m. to 5 p.m. five days per week, with one hour off each day for lunch. The bank determines when a full-time employee takes his or her lunch hour, but each teller must go between 12 p.m. and 1 p.m. or between 1 p.m. and 2 p.m. Full-time employees are paid (including fringe benefits) $15 per hour, which includes payment for lunch hour. The bank can also hire part-time tellers. Each part-time teller must work exactly four consecutive hours each day. A part-time teller is paid $9 per hour and receives no fringe benefits. To maintain adequate quality of service, the bank has decided that, at most, six part-time tellers can be hired. Determine how to meet the bank’s teller requirements at minimum cost.
- program in python the following problem We ask that you assist the ITPC by indicating the maximum total number of letters that can be printed on a set of N shirts that are valid to be worn by both teams. For example, if “PÉREZ”, “GONZÁLEZ” and “LÓPEZ” play in the U-18 team, while “GARCIA”, “PERALTA” and “RODRÍGUEZ” play in the U-21 team, the best thing is that a jersey has the prefix "G" with 1 letter (for "GONZALEZ" and "GARCIA" to use), another has the prefix "PER" with 3 letters (for "PÉREZ" and "PERALTA" to use), and another has a 0-letter prefix (to be used by “LOPEZ” and “RODRIGUEZ”). Thus, the answer in this case is 1 + 3 + 0 = 4. Entry Each test case is described using three lines. The first line contains an integer N that indicates the number of players in each of the two teams (1≤N≤104). The second line contains the surnames of the N players of the U-18 team. The third line contains the surnames of the N players of the U21 team. Each last name is a non-empty string of at…Suppose we have a nice young couple who borrow $700000 from the bank, at an annual interest rate of3.124%. The mortgage is a 30 year loan, so they need to pay it off within 360 months total. Our happycouple decide to set their monthly mortgage payment at $2000 per month. Will they pay off the loan intime or not?Note that the monthly balance will be calculated asbalance = (im × previous balance) - monthly paymentwhere the convert annual interest to a monthly multiplier im is calculated as im = (1 +i)1/12 and i = annualinterest rate.Write a loop for track the total payment in 360 months so that we can evaluate if the couple can pay off theloan. Write in R Please and thank you.John is training for a marathon and he can easily alternate between running a mile and walking a mile. If he runs for 2 miles in a row, he becomes fatigued, and must then walk for 2 miles in a row in order to no longer be fatigued. When he is fatigued, he can still alternate between running a mile and walking a mile, but if he runs 2 miles in a row while already fatigued, he will collapse on the side of the road. If he runs 3 miles in a row at any point, he will also collapse. Let the letter 'a' stand for John running 1 mile, and the letter 'b' stand for John walking 1 mile. Draw a DFA which accepts all possible runs in which John does not collapse on the side of the road.
- You are given an exam with questions numbered 1, 2, 3, . . . , n. Each question i is worth pi points and has a frustration score fi . You must answer the questions in order, but you may choose to skip some questions. The reason you might choose to do this is that even though you can solve any individual question i and obtain the ???? points, some questions are so frustrating that after solving them you will be unable to solve any of the following fi questions. Suppose that you are given the pi and fi values for all the questions as input. Devise an efficient algorithm you can for choosing a set of questions to answer that maximizes your total points, and compute its asymptotic worst case running time as a function of n.3. It can be said that statement P is a necessary condition for statement Q if Q ⇒ P is true. In other words, in order for Q to be true, it is necessary that P must be true. Let x be an integer. Give a necessary but not sufficient condition on x for x+5 to be a prime number. Justify your answer. Note: You should give a condition related to x, but not picking one specific number for x.2. A certain company gives commission to each of their salesmen based from the type of appliance sold andthe price of the appliance. Below are the given rates that will be used in computing for the salesman’scommission:If type is Commission is2, 5, 6 15% of the price4, 8, 10 20% of the price3, 1, 9,7 25% of the priceInput salesman’s name, type of appliance sold, and price of the appliance. Compute and print thesalesman’s commission.
- Clyde Clerk is reviewing his firm’s expense reimbursement policies with the new salesperson, Trav Farr. “Our reimbursement policies depend on the situation. You see, first we determine if it is a local trip. If it is, we only pay mileage of 45 cents a mile. If the trip was a one-day trip, we pay mileage and then check the times of departure and return. To be reimbursed for breakfast, you must leave by 7:00 A.M., lunch by 11:00 A.M., and have dinner by 5:00 P.M. To receive reimbursement for breakfast, you must return later than 10:00 A.M., lunch later than 2:00 P.M., and have dinner by 7:00 P.M. On a trip lasting more than one day, we allow hotel, taxi, and airfare, as well as meal allowances. The same times apply for meal expenses.” Draw a decision tree depicting the reimbursement policy in this Problem using LucidChart or Word document. Employees of a certain firm are paid on hourly basis at the end of each week. If an employee works up to 40hrs, the employee is paid 6 GHS and 7 GHS per hour for a male and female respectively. If an employee works for more than 50 hours then the employee is also paid 2.5 the corresponding regular rate for hours worked in excess of 40. All employees are to pay 10 % of their gross as INCOME TAX and 2.5% towards the NHIS. If an employee has more than 3 children then he or she pays 2 cedis per child in excess of three towards GETFUND. Write a C++ program that can print onto screen the Net Salary of any staff onto screen. NB (NETSALARY is equal to gross salary less all deductions (VAT, NHIS, GETFUND). Write a C++ program and draw a flow chart for a software solution that can solve for the problem above.When a car arrives at the toll gate, the gate is closed. the gate opens as soon as the driver has paid 25 pesewas. we assume that we have only three coins denominations 5,10 and 25 pesewas. We also assume that no excess change is returned. After having arrived at the toll gate, the driver inserts a sequence of coins into the machine. At the moment, the machine has to decide whether or not to open the gate. whether or not the driver has paid 25 pesewas (or more). a) construct the state transition table for the above scenariob) convert the state transition table to a minimal DFA