Develop a program (based on if-else structure) to recommend the optimum range of air flow for a given fuel and flowrate. The program shall request the users to select fuel type and enter the mass flowrate of fuel (fuel consumption). The system shall then recommend the optimum range of air flow (as per Figure 3.1). For invalid fuel type, the system shall prompt the error message (as per Figure 3.2). Utilise the variable in Figure 3.3 to develop the program. The input and output of program needs to be followed strictly as per Figure 3.1 and 3.2. LTMIM IMPIT Command Window >> TestAirFlow Select fuel type Natural Gas - NG Diesel - D Biomass =B Duel ime MG
Q: To develop your ideas for designing the system's operations, you are going to map out how your…
A: We need to write statements for mentioned conditions.
Q: Construct a program using conditional statement base on the word problem presented below: In order…
A: I have provided c++ code for given problem.
Q: Develop a program for current electrical billing system based on the given requirements using the…
A: 1. Flowchart for generating electricity bill
Q: Write a set of C program statements that allow a user to enter timings for a traffic light until all…
A: #include<iostream>using namespace std;int sum=0;int valid(){ int…
Q: Write a program c++ to calculate the value of purchases of a specific product. The value of one…
A: Given: Write a program c++ to calculate the value of purchases of a specific product. The value of…
Q: Write a program in C language using an if statement to control the elevator for your information you…
A: Program Approach: Including a necessary header file Defining the main method Declaring integer type…
Q: Write a program that computes the average temperature of Jeddah over one week. The user must be…
A: Required: Write a program that computes the average temperature of Jeddah over one week. The user…
Q: Implement the ff. decision table using a nested if statement. Assume that the grade point average is…
A: #include<iostream> using namespace std; int main(){ //input gpa float gpa; cout…
Q: Construct a program using conditional statement base on the word problem presented below:…
A: The ask is to write a program using conditional statement base for the given word problem.
Q: 5. Determine the type/behavior of the following expressions under static and dynamic typing. a) if…
A: According to the question, we have to determine the type or behavior of the given expression. (a) if…
Q: WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN…
A: PROGRAM: //Header file #include<iostream> //Using namespace using namespace std;…
Q: Write a program that computes the average temperature of Jeddah over one week. The user must be…
A: Required: Write a program that computes the average temperature of Jeddah over one week. The user…
Q: Design a C++ program that will request the user to enter the speed limit on a specific road and the…
A: Declare constant integer variables. const int LOW = 150; const int MEDIUM = 150; const int HIGH…
Q: Write a C++ program that allows user to enter a username + password. If the password is not valid,…
A: The program ask user to enter a name and a password. The password input is taken inside a while loop…
Q: b) Write a full program by apply the following decision table using nested if statement. Assume that…
A: Sample Response: //C++ programming language#include <iostream>using namespace std;//main…
Q: Write a C program using the If function to calculate the area of a rectangle or a triangle based on…
A: #include <stdio.h> int main(){ float AreaOfTriangle, Base, Height, AreaOfRectangle, Length,…
Q: Write a program that computes the employee's payroll of ABC Company. The user is first asked to…
A: Formula to calculate the gross income of an employee Gross Income =Hourly Rate * Number of Hours…
Q: c++ program to accept the monthly sales of each salesperson and display whether the person deserve a…
A: Program: // C+ Version 14#include <iostream>using namespace std;// main functionint main(){…
Q: Construct a program using conditional statement base on the word problem presented below:…
A: Program code: #include <iostream> // header file for cin,cout,endlusing namespace std; //Start…
Q: A program calculates the total salary of an employee with the condition that if the working hours…
A: Given:
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: Python used to answer this question
Q: use short-circuit evaluation to determine whether the following two compound conditions are TRUE or…
A: Formula used: a == b, if both a and b are equal, then “Yes” otherwise “No” a != b, if a and b are…
Q: WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 DOLLARS AT AN INTEREST…
A: Approach: Import necessary packages from java.util.scanner class. Create a class called…
Q: 39. Write a program for the following problem. An instructor needs a program that accepts a student…
A: Given : semester average grade 90 -100 A 80-89 B 70-79…
Q: Based on the description given below, draw a complete flowchart for a program develop for Cyberia…
A: Solution:-- 1)The given question has required for the solution to be provided as the flow chart…
Q: Write a program that uses a switch statement as follows: If game contains the letter p , or P the…
A: C++ Program: #include <iostream>using namespace std; // Function print the words Play Station…
Q: Design a C++ program that will request the user to enter the speed limit on a specific road and the…
A: Declare constant integer variables. const int LOW = 150; const int MEDIUM = 150; const int HIGH…
Q: Write a Q. BASIC program that reads and outputs the weather status average using Nested IF…
A: I have implemented the following requirements with comments for better understanding of the code. I…
Q: Write a program that prompt the user to enter a food product category, and price in USD. The program…
A: C++ Program for above : #include <iostream> using namespace std; int main() { cout…
Q: if the expression is true or false. A true expression is equivalent to one, a false expression is…
A: a)TRUE if (12%15 > 0) 12%15 > 0 12%15------>12 WHICH IS GREATER THAN 0 TRUE
Q: Write a complete and commented C++ program that inputs 150 integer values from the user representing…
A: #include <iostream>using namespace std;// #define size 17 // change this to 150 before…
Q: Write a program c++ that accepts a user-entered number and calculates the square. Before…
A: Include all the required headers in the answer program. Declare the main function. Declare variables…
Q: XYZ Telegram Company charges P18.50 for a telegram that do not exceed 12 words and P1.50 for every…
A: C program: #include <stdio.h> int main() { char c; int words; scanf("%c",&c);…
Q: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Program: #include <stdio.h> int main() { int…
Q: Analyze the following program fragment: int x; double d = 4; switch (d) { case 0: x = 1; case 2: x =…
A: Switch case can be of any valid type that have integral value it can be integer, character but not…
Q: Consider the programming problem "Create a program for determining the velocity of a vehicle in…
A: in the above problem we have to find velocity so the input by the user should be Distance travelled…
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A: 1. Input marks of 4 quiz 2. Add the marks of 4 quiz to get the total(tot) 3. Divide the add value…
Q: 1. Write a simple program to determine the credit card types according to annual income and user…
A: #include <iostream> using namespace std; int main(){ int inc,interest;…
Q: f the corresponding part of the electromagnetic spectrum, as given in the following table. Using if…
A: the program is an given below :
Q: Write a Python program that plays the rock-paper-scissors game, that following happens: Rock breaks…
A: Code:- # Hello World program in Pythonimport random def game(): computer = random.randint(1,3)…
Q: Write a C++ program that prompts users for the name and number of points of two basketball teams.…
A: C++ used to answer this question.
Q: The singaporean bus has 7 rows (lettered from A to G) with 8 seats each row(numbered 1 through 8)…
A: Algorithm: Define a seat matrix with values 0 Set count to 0 Set total_price to 0.0 Set ch to 'y'…
Q: Using conditional statement, create a Python program that will ask for the user's name, course,…
A: In this question, we are asked to write a python program as per the given conditions Explained code…
Q: Write a program that mimics a calculator: the program should take as input two integers and the…
A: I have given an answer in step 2.
Q: Write a Q. BASIC program that reads and outputs the weather status average using Nested IF…
A: I have implemented the following requirements with comments for better understanding of the code. I…
Q: Write a C program to read the age of a candidate and determine whether it is eligible for casting…
A: Given program is Write a C program to read the age of a candiadte and detrermine whether it is…
Q: Create a programming flowchart that requires computing the grade of a student through getting the…
A: Flowchart for the above program is given below
Q: Create a programming flowchart: That requires computing the grade of a student through getting the…
A: Flowchart : A flowchart is a tool to represent the algorithmic steps to solve a problem in…
Q: In python, an important feature of an if statement with elif clauses is that once a condition…
A: if-elif statements are known as conditional statements
Q: Construct a program using conditional statement base on the word problem presented below: In order…
A: #include <stdio.h>int main(void){ int kwhr; float bill; printf("Enter kilowatt hour: ");…
Step by step
Solved in 2 steps with 1 images
- Alaska is a famous airline operating in three southeastern states. The airline is computerizing its passenger reservation system. At the end of the JAD meeting, it was finalized that the data items must include reservation number, flight number, flight date, origin, destination, departure time, arrival time, passenger name, and seat number. For example, flight number 403 leaves Florida, daily at 9:00 a.m. and arrives in Georgia, at 10:15 a.m. A typical reservation code might be BXTTBC, for passenger Sara Lilly, in seat 4A, on flight 405 on 12/6/2019. Create an ERD for the passenger reservations system. Create 3NF table designs for the system.A job scheduler gets work requests with a priority of execution attached to it, in the following sequence. The higher the priority value, the more important task execution.Work ID: 464 212 110 840 976 3433 2 3 1 2 2 Priority: 3 2 3 1 2 2Create a treap for the jobs that are set to run. What will the treap look like after the highest priority jobs have finished execution and thus left the treap?Suppose a business person launches new cinema at Islamabad and ask his team to develop a ticket system for box office. He assigns some requirements about system that how should it work. The requirements are such a way that there are only '5' number of box office windows in the theatre. Each window can have at max '20' number of people waiting in line. To start with, only one window is opened. If the number of people waiting in line in that window exceeds 20, then the next window is opened and people can join the line in that window. Likewise, if both the first and second windows have n number of people waiting in each queue, then a third window is opened. This can go on until the maximum number of windows w is reached. Let us assume that once a window is opened it never closes. A new window is only opened if all open windows are full. Each person can buy only one ticket. So, the system should not allot more than one ticket per person. Let us assume that the system issues one ticket…
- Case Study:Consider an online shopping website that maintains a shopping cart. A user can search productsand place order and can make payment for it either online or cash on delivery. If a user placean order of amount RS 2500 or above he gets home delivery of the product for free, otherwisehe has to pay Rs 250 extra for home delivery. There are different types of users based onmembership Guest User (No membership), Gold User, Platinum User. Guest user doesn’t getany discount, Gold user gets 5% off on every product, Platinum User get 7.5% on everyproduct. Question No. 2: Draw Activity diagram for the case study above ? Question No. 3: Draw Class diagram for the case study above. ?A job scheduler receives job requests with a priority of execution attached to it,in the following sequence. The higher the priority value, the higher the priority of job execution.Job ID: 464 212 110 840 976 343Priority: 3 2 3 1 2 2Build a treap for the jobs scheduled for execution. How would the treap look when the highest priority jobs have completed execution and therefore have quit the treap?There are 3 resources R1, R2 and R3 with one instance each and three processes P1, P2 and P3 in an operating system. A snapshot of the system resource allocation graph shows the following: R1 is allocated to P2; R2 is allocated to P1; R3 is allocated to P3; P1 requests R1; P2 requests R3; P3 requests R2. Which of the following is true about this system? answer ) a)Undetermined b)There is deadlock in the system c)Deadlock will never happen d)There is no deadlock in the system
- A single process, with execution time of BT time units, is detected by the system that uses Round Robin algorithm with time quantum of QT time units. Every time the time quantum elapses; a context switch is always performed with CS time units. Assume that the process come at time equal to zero (0). 1) What is the system’s throughput if BT is less than QT? a. 3/BT b. Undetermined c. 1/BT d. 2/BT 2) What is the system’s turnaround time (TAT) if BT is less than QT? a. BT/QT b. BT c. CS d. QTdraw a state machine diagram of following scinerio using gaurd / trigger : A patient login into system and book appointment through a system . appointment booking include selction of doctor and date , a patient can update as well as cancel the order ...Suppose there are five processes, their arrival time and running time are listed as follows. Adopt FCFS and SJF, respectively, give the schedule order and average waiting time. Give the schedule order of SJF. Compute the average waiting time of SJF. Process Arrival time Running time P1 P2 P3 P4 0 3 4 5 3 10 6 1
- Give an example of any system. Of how you could calculate virtual works.Following is the order in which task requests with a priority of execution are received by a job scheduler. The priority of task execution increases with a greater priority value.Work ID: 464 212 110 840 976 3433 2 3 1 2 2 priorityCreate a treasury for the upcoming tasks. How would the treap appear once the top priority jobs had finished running and left the treap?Pair programming is an agile software development technique in which two programmers work together at one work station. One types in code while the other reviews each line of code as it is typed in. The person typing is called the driver. The person reviewing the code is called the observer. The two programmers switch roles frequently (possibly every 30 minutes or less). Suppose that you are asked to build a system that allows Remote Pair Programming. That is, the system should allow the driver and the observer to be in remote locations, but both can view a single desktop in real-time. The driver should be able to edit code and the observer should be able to “point” to objects on the driver’s desktop. In addition, there should be a video chat facility to allow the programmers to communicate. The system should allow the programmers to easily swap roles and record rationale in the form of video chats. In addition, the driver should be able to issue the system to backup old work.a) Draw a…