Design a flowchart for the followings: if value is equal to 3, day of the week is Tuesday; els if value is equal to 4, day of the week is Wednesday; 1. 1.1 if discount < 11% then print (you have to pay $30)
Q: a) Draw a flowchart to solve the following problem. A student will not be fined if he returns the…
A:
Q: A person buys a product from XYZ shop. you have to input quantity of a product and price of one…
A: Pseudo-code: Pseudo-code is a writing up of the machine instructions in an informal and…
Q: Q5:- Write program to calculate the equation sin(x) y(x) = x* where x = 0. 1,0. 2,0. 3,0. 4
A: #include <iostream>#include<cmath>using namespace std;int main(){ float x,y;…
Q: Write a Boolean expression that is true if and only if a student is a senior who is majoring in…
A: In the generation of the boolean expression, the most important keyword used as : AND: It is used…
Q: In the following flowchart, what value of SUM will be printed? BEGIN X=9, Y=2 K-0, SUM=0| Is True…
A: Draw a dry run
Q: Explain if...else... with example and draw flowchart.
A: The if else with example and flowchart is as follows:
Q: By using the aid of flowchart(s), explain the difference between if selection and if. else…
A: if statement: The if statement is the fundamental control statement that allows JavaScript to make…
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: A customer want to buy five items. He has only 75.0 OMR with him. The price of the products are…
A: Define mouse←6.50, keyboard←10.50, webcam←15.00, flashDrive←5.25, headphone←7.50, pen←1.00 Define…
Q: Owning your own home is a goal for many people. Few of us have the money to buy a home for cash, so…
A: Open visual studio. Select File -> New -> Project. Select Visual C++ -> Console App. Type…
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: Afrah wants to gifts her friend. She has 160 OMR. She wants the following products: Books with 10.00…
A: Initialize amount to temp variable and counter for the array as 0, If the while loop traverse then…
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: Write pseudo code and design flowchart that will count all the count all the even numbers up to a…
A: Flow chart: It is used to represent program steps in the pictorial representation. Using the flow…
Q: Q5:- Write program to calculate the equation sin(x) y(x) = x * where x = 0. 1,0. 2,0. 3, 0. 4
A: You have not specified any programming language so, I have used C++ language to write the program.
Q: Write pseudocode and draw the flowchart for the given problem using if condition. The program should…
A: Pseudocode Begin { int temp1, temp2, temp3, temp4, cityLow; Accept temp1, temp2, temp3, temp4;…
Q: * Clouds are generally classified as high, middle or low level. The height of the cloud is the…
A: The code for the given scenario is: x=input('Enter The Cloud height')if x>=0 &&…
Q: Indicate if the following condition is True or False Assume the variables x=5, y=6 and z=8. 7 4…
A:
Q: Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products: Sport suite with…
A: Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products: Sport suite with…
Q: A customer want to buy five items. He has only 120.0 OMR with him. The price of the products are…
A:
Q: Write a flowchart to calculate the Graded Point Average (GPA) of a student for 20 courses. The…
A: A flowchart is a diagram that depicts a process, system or computer algorithm. Flowcharts use…
Q: Draw the flowchart and write the equivalent code for the following problems: Marcy’s Department…
A: Actually, given information Marcy’s Department store is having a BoGoHo (Buy One, Get One Half Off)…
Q: Q3/A- Estimate the result when you execute the following code by using Qbasic programming For m take…
A: Lets take m =85 85>=80 Print "very good"
Q: Get 10 numbers from user using loop. Find which number is a. positive b. negative c. zero d. Odd…
A: for 10 times: Store the input value in term if term>0: Number is…
Q: Write pseudocode and draw the flowchart for the given problem using if condition. The program should…
A: Given 4 cities temperature. Temp1, temp2, temp3 and temp4. Compare each temp with others to find…
Q: draw a flowchart for the following Sconario, Design an algrithm and Take the Basic Salary of an…
A: Algorithm is a sequence of instruction to solve a specific problem Algorithm for given problem:…
Q: A car’s miles-per-gallon (MPG) can be calculated with the following formula: MPG = Miles…
A: pseudocode take distance covered in miles by user take number Gallons of gas used during the…
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: Write a pseudocode and draw a flowchart to calculate and print the Electricity bill of a given…
A: The required pseudocode is: Start Read CustomerID. Read Name. Read Unit. IF Unit <= 199:…
Q: The following steps calculates the discounted sales price of a user inputted retail amount. 1.…
A: 1. discount = 0.15 Explanation: Define a variable discount and assign it a value of 15% that is 0.15…
Q: A company has 45 employers, 25 work as system developers (D) and (N) work as sales representer while…
A: Below is the flowchart:
Q: QI Write a program of value for a student's grade between (1-10). If the value is between (8-10),…
A: Code: #include<bits/stdc++.h>using namespace std; // Function to convert number into…
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: If you know the balance and the annual percentage interest rate, you can compute the interest on the…
A:
Q: Write a regular expression the checks for currency in US dollars up to a million dollars. Cents may…
A: You can use - ^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?$ ^ - start with + or - [0-9] number…
Q: 1. Write a flowchart that calculates the tax as follows: a) No tax if you get paid less than 10,000…
A:
Q: A customer has to pay for 7 items. He has only 35 RO with him. The price of the products are: S.NO.…
A: Given data is shown below:
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 Initialize amount to 50.50 OMR Initialize prices array with given prices…
Q: What does the following code display if number has the value 36? if(number%2 System.out.print("A");…
A: NOTE: SINCE PROGRAMMING LANGAUGE IS NOT MENTIONED. THEREFORE ANSWERING IN JAVA LANGUAGE. We have…
Q: Rewrite the following if statements using a conditional expression: if ages >= 16:ticketPrice =…
A: Problem1: Rewrite the following if statements using a conditional expression if ages >=…
Q: (PYTHON) 3. Create an if statement that checks to see if the number x is greater than 0 and less…
A: Given: Make an if statement that tests if x is higher than 0 and less than or equal to 50.
Q: Suppose a person wants to apply for a loan in a bank. The bank gives loan on a fixed interest rate…
A: SOURCE CODE: #include<iostream> using namespace std; int main(){ double…
Q: 3. The longevity pay of employees is based from the number of years the employee has worked in the…
A: To Do: To draw the flow chart.
Q: Write an Algorithm and Flowchart to read the marks of a student for 3 courses (Marks in the range 0…
A: An algorithm is used to solve the specific problem using a set of rules in a sequential manner.…
Q: True or False: The expression 6!0! equals 0.
A: The complete answer is given below:
Q: After executing the following statements the value of the variable a will be 4: double d =3.7; int a…
A: When you assign a value from one primitive data type to another, then this is known as type casting.…
Q: Afrah wants to gifts her friend. She has 160 OMR. She wants the following products: Books with 10.00…
A: 1) Create A Function BuyOrNot 2) Find The Total Cost Of Products = Cost Of Books + Cost Of Dress +…
Q: Flowchart for the numbered New York City streets problem. Program: Determine the direction of a…
A: The Answer is in Below Steps
Q: . Lala Supermarket will prompt the user to input the price and quantity of items. The user should…
A: PseudoCode 1. Define quantity, price, totalPrice, discount 2. Display "Enter price of the item" 3.…
Can you answer this question
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 8 images
- Write an OCTAVE code that calculates the tip based on amount of bills, using the following rules and the variable ‘bill’: • bill is less than 15 ₺, Tip is 1,50 ₺ • bill is between 15 ₺ and 70 ₺, Tip is %15 • bill is above 70 ₺, Tip is % 19 a)Draw the flowchart of the solution b)Write the Octave codeDraw a flowchart and write pseudocode for each of the following scenarios for the ABC College:a. The current annual matriculation fee is $12,000.00 and it is expected to increase by 5% each year. Show the matriculation fee for the next 10 years.b. Revise (a) so that the user can enter the rate of increase, instead of having it set at 5%.c. Revise (a) so that the user enters the rate of increase for the first year and it then increases by 0.3% each subsequent year.Write a flowchart that will ask the user to input any integer number. Print "NEGATIVE" if the number is negative Otherwise, print "POSITIVE".
- Create a flowchart that will accept two integers X and Y. If X is greater than Y, it will compute for the difference between X and Y. If X is less than Y, it will compute for the product of X and Y. Otherwise, it will compute for the sum of X and Y. Display the values of X,Y, and the answer.Draw a flowchart that will print numbers from 1 to 8 and get the sum of these 8numbers.(a) Write a Boolean expression that evaluates to true if a number stored in variable num is between 1 and 100. (b) Write a Boolean expression that evaluates to true if a number stored in variable num is between 1 and 100 or the number is negative.
- A mobile phone app allows a user to press a button that starts a timer that counts seconds.When the user presses the button again, the timer stops. Draw a flowchart, write pseudocode and C++ that accepts the elapsed time in seconds and displays the value in minutes and remaining seconds. For example, if the elapsed time was 130 seconds, the output would be 2 minutes and 10 seconds.If the variable an is less than 10, create an if-else expression that sets the variable b to 0. Otherwise, the variable b should receive the value 99.write flowchart and pseudo code for that: If the user chooses this option then the user needs to enter the required information for the book except for the number of borrowed books as that one should be made to 0 when it is first added. Few things you need to check for: ▪ ▪ ▪ ▪ ▪ The user should be asked about the number of the authors and depending on that he enters the authors name (remember when you add them the names are seperated by a colon) There must be at least one author name entered. The serial number is unique (and should be validated as contianing 6 digits and that number should not exist in the file before). The title cannot be empty. Price is a double positive number. Number of currently available books should be a positive integer those information are entered and are valid a record is add to the “Library.txt” file. And a Once all message telling the user it was added successfully should be printed otherwise an appropriate message should be printed.
- Suppose that classStanding is a char variable, gpa and dues are double variables. Write a switch expression that assigns the dues as following: If classStanding is 'f', the dues are $150.00; if classStanding is 's', (if gpa is at least 3.75, the dues are $75.00; otherwise dues are 120.00); if classStanding is 'j', (if gpa is at least 3.75, the dues are $50.00; otherwise dues are $100.00); if classStanding is 'n', (if gpa is at least 3.75, the dues are $25.00; otherwise dues are $75.00). (Note that the code 'f' stands for first year students, the code 's' stands for second year students, the code 'j' stands for juniors, and the code 'n' stands for seniors.)Summary The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows. If the number of rooms booked is: at least 10, the discount is 10% at least 20, the discount is 20% at least 30, the discount is 30% Also if rooms are booked for at least three days, then there is an additional 5% discount. Instructions Write a program that prompts the user to enter: The cost of renting one room The number of rooms booked The number of days the rooms are booked The sales tax (as a percent). The program outputs: The cost of renting one room The discount on each room as a percent The number of rooms booked The number of days the rooms are booked The total cost of the rooms The sales tax The total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Create a Flowchart that will compute the real estate tax, given the following formulas:a. If value of real estate is less that 250,001.00, tax if 5% of the real estate value.b. If value of real estate is between 250,001.00 to 500,000.00, the tax is 10% of the real estate value,c. If more that 500,000.00 tax is 15% of the real estate value. IN C++