Afrah wants to gifts her friend. She has 160 OMR. She wants the following products: Books with 10.00 OMR Dress with 60.10 OMR Shoes with 18.230 OMR Ring with 12.98 OMR Watch with 54.70 OMR Write an algorithm and draw a flowchart to check whether she can buy all the above items. Display
Q: Draw a flowchart that takes 20 numbers from the user and returns the count of numbers that can be…
A: Sample Response
Q: In a program (T1), the name of the sum of odd integers from 1 to N, the name of the sum of even…
A:
Q: 13. Construct a flowchart to determine the equivalent grade of each student in a class as follows:…
A: Required: Construct a flowchart to determine the equivalent grade of each student in aclass as…
Q: Equivalent Grade Point 1.0 99-100 2.25 84-86 1.25 96-98 2.50 81-83 1.50 93-95 2.75 78-80 1.75 90-92…
A: Answer: I have given answered in the handwritten format
Q: e the algorithm and draw the flowchart of biseclloll
A: Bartleby allows experts to answer only one question at a time. Answering more than one question at a…
Q: 10. A customer has to pay for 7 items. He has only 35 RO with him. The price of the products are:…
A: ALGORITHMS:- 1. Initialize a variable with initial amount. 2. Initialize a list with amount of…
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: Draw a flowchart that will get the roots of a quadratic equation. If one of the roots is greater…
A: Step Form Algorithm: Get started. Announce the required variables. Indicate the user to enter…
Q: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Given: A company selling household appliances gives commissions to its salesman determined by the…
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: Equivalent Grade Point 1.0 - 99-100 2.25 - 84-86 1.25 96-98 2.50 81-83 1.50 93-95 2.75 78-80 1.75…
A: Answer: I have given answered in the handwritten format
Q: When children visit play zone, at the entry gate their height and age should be checked. He/she…
A: The Answer is in Below Steps
Q: Write a pseudo code and draw a flowchart that asks user to enter two integers, obtains the numbers…
A: pseudocode: Input two numbers if a>b then display "a is larger than b" else if a==b then…
Q: Ahmed wants to gift his friend He has 82.300 OMR. He wants the following products Sport suite with…
A: 1)Start 2)Initialize cost of all items=0 3)Intialize amount =82.300 4)Now ,calculate cost of all…
Q: Q1: Draw a flowchart for work the traffic lights ? Q2: Write the algorithm required to find the…
A: NOTE: We’ll answer the first question since the exact one wasn’t specified. Please submit a new…
Q: A company has 45 employers, 25 work as system developers (D) and (N) work as sales representer while…
A: Find the required queries given as below :
Q: Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products: Sport suite with…
A: Algorithm: Start Initialize amount=82.300 OMR Initialize sum=0 Initialize an array prices with…
Q: A customer want to buy 6 items. He has only 50.50 OMR with him. The price of the products are…
A: Algorithm: Start Declare and initialise variables…
Q: (3) Suppose we have a box with n balls. Every ball has one color only, however we have 10.000…
A: Data Given:- Box with 'n' balls Different colors of ball : 10 To Find:- Count of balls of each…
Q: Whenchildrenvisitplayzone,attheentrygatetheirheightandageshouldbe checked. He/she should only be…
A: Given that, When children visit play zone, at the entry gate their height and age should be checked.…
Q: A certain store sells softdrinks for P 6.00 and sandwiches for P 6.85. Draw the flowchart to input…
A: Flowchart: - It's just a visual description of stages while writing a program. It illustrates steps…
Q: Draw a flowchart to find the smallest (minimum) of two numbers Just answer without explanation…
A: Draw a flowchart to find the smallest (minimum) of two numbers Just answer without explanation…
Q: Abdullah wants to furnish his office. He has 161 OMR. He wants the following produ Desk with 52.30…
A: hi
Q: Flowchart for this given task please and also please give a little explanation of how you did your…
A: ANSWER:-
Q: A customer want to buy five items. He has only 120.0 OMR with him. The price of the products are…
A: Algorithm: Let item be the items purchased by the customer let price be the price of each item…
Q: Suppose you save $100 each month into a savings account with the annual interest rate 5%. So, the…
A: Given: Suppose you save $100 each month into a savings account with the annual interest rate 5%. So,…
Q: A customer want to buy five items. He has only 120.0 OMR with him. The price of the products are…
A:
Q: Create a flowchart with this scenario: A telephone area code is a three digit number. The first of…
A: Given: Create a flowchart with this scenario: A telephone area code is a three-digit number. The…
Q: Flowchart for this given task please and also please give a little explanation of how you did your…
A: The answer given as below:·
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: A customer want to buy five items. He has only 120.0 OMR with him. The price of the products are…
A: Start Initialize amount in hand to 120 If amount>=5.50 amount=amount-5.5 If amount>=25…
Q: Write an algorithm and draw a flowchart to check whether a hospital ward can be converted to a COVID…
A:
Q: A customer want to buy five items. He has only 120.0 OMR with him. The price of the products are…
A: Algorithm: Start Initialize amount=120.0 OMR Initialize sum=0 Store all the given prices in an…
Q: 4. Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products: Sport suite…
A: Algorithm Step 1- Start Step 2- Amount=82.300,Sport_suit=15.700, Sport_shoes=32.00,…
Q: Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products: Sport suite with…
A: Given : Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products:Sport…
Q: In the class ,the time of class 60 minutes ,At beaning 10 minutes the number of student are came 30…
A: TotalNumberstudents=slotOneStudentsCount+slotTwoStudentsCount
Q: You are working as a teaching assistant at a local university, you gave your students a mathematics…
A: A required program is as follows, % define the vector of grades grades = [35, 50, 70, 63, 66, 90,…
Q: #PYTHON PROGRAM TO FIND CALORIES BURNED caloriesBurn=4.2 curCaloriesBurn=0 min=10 while min<=30:…
A: Here we have given the raptor flow chart for the given python code in step 2.
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A: Algorithm (Narrative) 1. Input marks of 4 quiz 2. Add the marks of 4 quiz to get the total(tot) 3.…
Q: Can this be done in a form of a flowchart please? 1. Prompt the user and read in the number of a…
A: Flow chart is a step by step in which the sequence of steps are connected using the flows. In Flow…
Q: Draw a flowchart for last question which is: An If-Then-Else flowchart with a dual alternative…
A: We are given a logic for which we are going to create flowchart. Logic is simply to check if entered…
Q: 14.Draw a flowchart that will read and print the names and individual score of 50 students for a…
A: 15.
Q: Create an original simple flowchart that will show the sum of 5 numbers and add explanation about it
A:
Q: A student took four quizzes
A: Algorithm (Narrative) 1. Input marks of 4 quiz 2. Add the marks of 4 quiz to get the total(tot) 3.…
Q: When children visit play zone, at the entry gate their height and age should be checked. He/she…
A: Q: Flowchart and Algorithm for given question
Q: 4. When mailing a letter, the amount of postage is in question. You like to use this rule of thumb:…
A: Note: Since your question contain multiple question , but As per guidelines provided we are…
Q: Q4. Write an algorithm and draw a flow chart to get cgpa of student. If CGPA is more than equal to…
A: Algorithm: Step 1: StartStep 2: Read the CGPAStep 3: if CGPA >= 2.7 then go to step 4 . else go…
Q: draw a flowchart of the given problem, and then convert that flowchart into Java code. A supermarket…
A: A flowchart is a graphical representation of steps used to solve a particular problem. The required…
Q: Example 6: Write an algorithm and draw a flowchart to a) read an employee name (NAME), overtime…
A: Include the header files. Declare the structure with employee details. In the main function, create…
Q: 4. Abdullah wants to furnish his office. He has 161 OMR. He wants the following products: Desk with…
A: An algorithm is a finite number of steps to perform a specific task. An algorithm is independent of…
Step by step
Solved in 2 steps with 1 images
- You are given a string ternary_expr which represents a random nested ternary expression, you need to evaluate this expression, and report the result. Assumption can be as follows: ● ternary_expr only contains digits, ‘?’, ‘:’, ’T’, ‘F’ where ’T’ is true and ‘F’ is false. ● ternary_expr contains only one-digit numbers (i.e. in the range [0, 9]) The ternary expressions group right-to-left, and the result of the expression will always evaluate to either a digit, 'T' or 'F'. Requirements 1. Way of modeling the problem with the cost implications without using Stacks.Write a program that works out if a given year is a leap year This is how to workout whether if a perticular year is a leap year on every year that is evenly divisible by 100 except every year that is evenly divisible by 100 unless the year is also evenly divisible by 400 Note Study the flow chart given below START No Yesit cleanly divisible by Not Leap No Yes it cleanly divisible by 1007 Leap No Yes it cleanly divisible by 4007 Not Leap Leap Guideline : Create a unique code Create a function leapYear_697 to accept the parameter (i.e year ) and return whether the given year is a leap year Javascript program name should be like Assign2 697Given a directed line from point p0(x0, y0) to p1(x1,y1), you can use the following condition to decide whether a point p2(x2, y2) is onthe left of the line, on the right, or on the same line.Write a program that prompts the user to enter the three points for p0, p1, and p2and displays whether p2 is on the left of the line from p0 to p1, to the right, or onthe same line.
- Write a program that calculates the energy neededto heat water from an initial temperature to a final temperature. Your programshould prompt the user to enter the amount of water in kilograms and the initialand final temperatures of the water. The formula to compute the energy isQ = M * (finalTemperature – initialTemperature) * 4184where M is the weight of water in kilograms, initial and final temperatures are indegrees Celsius, and energy Q is measured in joules. Here is a sample run: Enter the amount of water in kilograms: 55.5Enter the initial temperature: 3.5Enter the final temperature: 10.5The energy needed is 1625484.0Write an algorithm and draw its flowchart to solve this problem:Buying an item (Book, CD, or DVD ) from an online store, and do the payment (using Visa or debit card)?Develop a program that takes a set of pairs of data values (e.g. sales and month), fits a straight line to the data, and displays the results in a table and chart. Fitting a line or equation to data is done in many fields including business and scientific research. __________________________________________________________ #include <iostream> // Needed for cout and cin#include <iomanip> // Needed for setw and others#include <fstream> // Needed for ifstream#include <string> // Needed for string data type#include <cmath> // Needed for pow #include "Graph.h" // Used to graph the results using namespace std; // To use cout instead of std::cout // Function prototypesbool readArrays(ifstream& inFile, double x[], double y[], int size); int main() { // Do "Press return to continue..." on exit atexit([] {system("pause"); }); // Prompt for the name of the data file and store it in a string variable named fileName. // Put your code…
- Create the logic for a game that simulates rolling two dice by generating two random numbersbetween 1 and 6 inclusive. The player chooses a number between 2 and 12 (the lowest and highest totals possiblefor two dice). The player then “rolls” two dice up to three times. If the number chosen by the user comes up, theuser wins and the game ends. If the number does not come up within three rolls, the computer wins. (5.1, 5.2)Must use the following declarations in your flowchart or pseudocode.Declarationsnum dice1num dice2num guessnum countnum wonnum LIMIT = 6string PROMPT = "Choose a number between 2 and 12 >> "string WIN = "You win!"string LOSE = "You lose!The manager of Mama Calari’s Pizza Palace wants a program that calculates and displays the number of pizza slices into which a circular pizza can be divided. The manager will enter the radius of the entire pizza. For this exercise, use 14.13 as the area of a pizza slice, and use 3.14 as the value of pi. Desk-check your solution’s algorithm using 10 as the pizza’s radius; then desk-check it using 8. (Hint: For the first desk-check, the number of pizza slices should be a little over 22.)Does this pseudocode work with my flowchart? and what else can i improve on on both and what to do on mistakesStart Declare String candidate1name, candidate2name, winner Display “input name of candidate” Input candidate1name, candidate2name CandidateVotes() Declare string candidate1name, string candidate2name Int candidate1votes, candidate2votes Input candidate1votes, candidate2votes Read candidate1votes, candidate2votes If candidate1votes, candidate2votes == 0 Then repeat Input candidate1votes, candidate2votes Else If candidate1votes > candidate2votes Display Candidate1 has more voters than Candidate 2 candidate1name = ”winner” else, Display Candidate 2 has more voters than Candidate 1 candidate2name = ”winner” return Display “The one who achieved the most votes is” << winner endThis is also the program I was tasked with Create a pseudocode and flowchart for a voting mechanism that will determine the overall votes for two candidates. Each member of each of the two…
- Implement a program that calculates the bill of a sandwich stand. The program should ask theuser to enter the quantity of each of the items. Then compute 13% GST on the total amountand generate a bill with items, their quantity along with price of each item and the total(inclusive GST). The stand has the following items:- Petti for $2.50- Drink for $1.25- Extra cheese topping for $1.25Here is the code i have written so far, please finish it #include <stdio.h>#include <cstack.c> int i=-1;int nextstate=0;cstack top; init_cstack(&top);while(1) switch{ case 0: i++; if (is_open(my_input[i])) nextstate= 1; else if (is_close(my_input[i])) nextstate= 2; else if (my_input[i] == '\0') nextstate= 3; else nextstate= 4; break; case 1: if(!is_cfull()){ cpush(&top, my_input[i]); nextstate= 0; } else{ printf("Error! Stack is full\n"); exit(0); } break; case 2: if (!is_cempty(top)){ if(is_brother(cpop(&top), my_input[i])){ nextstate= 0; } else{ printf("Error! Delimiter do not match\n"); return FALSE; } } else{ printf("No open delimiter to compare to\n"); return FALSE; } break; case 3: if…Given three int variables that have been given values, areaCode, exchange, and lastFour, write a string expression whose value is the string equivalent of each these variables joined by a single hyphen (-) So if areaCode, exchange, and lastFour, had the values 800, 555, and 1212, the expression's value would be "800-555-1212". Alternatively, if areaCode, exchange, and lastFour, had the values 212, 867 and 5309 the expression's value would be "212-867-5309".