1. Draw a flow chart to print the positive numbers that entered by the user and terminate if a negative number is provided.
Q: Draw a flowchart for a program where user enter his mark for 3 different courses in the semester…
A: Flow chart
Q: draw flowchart to read names and ages of people terminated by 9999 and print the name of the oldest…
A: given: read names and ages of people terminated by 9999 and print the name of the oldest person…
Q: Q2] Draw a flowchart for a program that askes the user to provide (enter) five numbers, then…
A:
Q: B- Write a program to input three sides of a triangle and determine whether a triangle equilateral,…
A: According to the Question below the Solution: Output:
Q: Q2. Write an algorithm and draw a flow chart to calculate the area of circles and calculate the area…
A: Algorithm is the step by step approach to solve the problem. The steps of algorithm should be…
Q: (a)Write a detailed algorithm for the above problem. (b)Write a flowchart based on the algorithm for…
A: Initialise a array of float type of size 4. The array will be initialised with the values {0.35,…
Q: 2 (a) Write an algorithm to input three different numbers, and then output the largest number. Use…
A: Below is the answer to above question. I hope this will be helpful for you....
Q: Q4: Write a program to input any two numbers. Then compute their Sum, Product, Difference and…
A: Given:
Q: Questions: 1. Write an Algorithm and Flowchart to check whether a number is odd or even and display…
A: Algorithm: To check the given number is even or odd Step 1: Start Step 2: READ num Step 3: rem=num%2…
Q: Q1: Write an algorithm and draw flowchart to find the sum of positive numbers among 20 numbers…
A: The algorithm to find the sum of positive number among 20 numbers entered by the user, step is as…
Q: If originally x=10, what is the value of x after each of the expressions: a.++x b.x++
A: As per guidelines we are supposed to answer 1st question when multiple questions are posted. Thus…
Q: 4/A/Design a program to calculate the value of (H) from the equations according to the specified…
A: Here is the code in Python:
Q: 21. Draw a flowchart to read the names and ages of people terminated by 9999 and print the name of…
A: Input : Read the list of ages of the person until 9999 is entered. Read the list of names of…
Q: 24. If a logical expression is true, it will always return a logical 1 and if it's false, it'll…
A: In this question, we are asked to tick a answer in a True/False format of boolean expressions type.…
Q: mm yes program.py > fype your answer to "Summarise hair and eyes" here.
A: Lets see the solution in the next steps
Q: Title: Develop a flowchart for a given problem Performance Obiective:
A: Flowchart:
Q: Analyze the below program segment and find the syntax error. /* Tracing The Error*/ cin >> a,b,name;…
A: There are many errors in the code. See below steps.
Q: b. No Yes B7 E? No Yes K No
A: A) Pseudocode - 1. First execute A instructions or code of lines. 2. Enter into if condition…
Q: A= 1011 B= 1010 Apply the three equations and write a simple comment
A: A= 1011 = 11(in decimal) B= 1010 = 10(in decimal)
Q: 2. Create an IPO chart based on the problem given below a) Calculator that allow user to perform…
A: IPO(Input, Processing and Output) chart is used to define a function, it acts as a outline for the…
Q: Which statement is false? . The if selection statement can have only one statement in its body. b. A…
A: Given To know about the false statement.
Q: Define the problem analysis and write the pseudo code and flowchart that will read a file of numbers…
A: The observe–orient–decide–act (OODA) loop was created by military strategist and United States Air…
Q: (a) Assume x, y and z are integer variables and x = 5 and y = 6. Trace and write the values of the…
A: Dear Student, In the case of post increment, it assigns to a variable first, then increases the…
Q: Q3) Suppose two point coordinates say (x1.yl) and (x2.y2), write a C++ program asks the user to…
A: Note: only one question is permitted in compliance with the BNED Guidelines. If you would like a…
Q: Question 1: Write a J2ME program to display the checkbox using Choice Group and also display ticker…
A: Actually, Java is a general-purpose also class-based, object-oriented programming language designed…
Q: Q1: Draw the flow chart of a program that returns the sum of the even numbers between 5 and 75.
A: 1) Create a variable sum= 0 ,I=5 2) Run the loop from I=5 to I=75 Check if I is even…
Q: USE FLOWGORITHM STEP BY STEP Using a flow chart display a series of numbers in which each number…
A: Given: USE FLOWGORITHM STEP BY STEP Using a flow chart displays a series of numbers in which each…
Q: Only draw the flow chart for the following problem/no coding required. Read the username and…
A: As per mention, the flowchart is designed for the sign-in validation of the system. First after…
Q: Q1: Write an algorithm and draw a flowchart to place an order for a burger and a drink.
A: Required: Write an algorithm and draw a flowchart to place an order for a burger and drink.
Q: 2. Write an algorithm and draw a flow chart, and write Code in visual basic (using IF Block…
A: 1) Get input for value of x 2) IF x>0 z=x + 3e5 IF x=0 z=3/x + sin(x)…
Q: Which of the following symbol represents calculation in Flow chart? а. b. С. d.
A: Answer is option c.
Q: 1. Write an algorithm and draw a flow chart to read a number from the user and check whether the…
A: Answer: Start Declare integer variable num, C, B , A, area,s; Initialise the variables B = 10, A =…
Q: 2. Write an algorithm and draw a flow chart, and write Code in visual basic (using IF Block…
A: I am giving most answers as per the Q/A expert community recommendation because the main question…
Q: Write algorithm and draw the flowchart of a program that receives two numbers and replacess thier…
A: Start Input num1 Input num2 Declare temp Store num2 in temp Store num1 in num2 Store temp in num1…
Q: Answer all questions, please. 1. Write an algorithm (Pseudo code and Flow Chart) to calculate the…
A: Given:
Q: 1. Please create the pseudocode for a program that can adding and averaging five numbers…
A: Consider the pseudo code in C language: #include<stdio.h> int main(){ int A, B, C, D, E,…
Q: Q2. Write an algorithm and draw a flow chart to calculate the area of circles and calculate the area…
A: Algorithm Start Var aC,aR,tA, L,B,r Constant pi=3.1416 Accept length in L and breadth in B of…
Q: 1) Write a program to INPUT the radius (ONLY THE RADIUS) and then calculate the area and the…
A: CODE: import math #use funtion math to input value of pi r=float(input("Enter the radius of a…
Q: Begin input hours, rateperhour if hours >25 pay = hours * (rate*1.45) print pay if hours >10 but <25…
A: Introduction of Flow Chart A flow chart depicts the pictorial or graphical representation of any…
Q: Q1. Write an algorithm and draw a flow chart to calculate the area of triangle and calculate the…
A: Algorithm and flow chart to calculate the area of triangle and calculate the area of rectangle.
Q: 4. Design and write a program to get the cartesian coordinates of two points (x1,yl) and (x2,y2),…
A: Hello Student. Greetings Hope you are doing great. I will try my best to answer your question. As no…
Q: Problem 3: Create a program that will accept a year and identify if it is leap year or not.
A: Note: The p[rogramming language and approach are not mentioned in this question so the general…
Q: 2. Do a flow chart to ask for a person's age and show how many days old including leap years they…
A: Here our task is to develop a flow chart to calculate the number of days from the age of a person.…
Q: Write pseudocode for each example (a through e) in Exercise 2, making sure your pseudocode is…
A: From the above flowcharts a) consider the modified flowchart a) Pseudo code of the flowchart:…
Q: According to the decisions taken during the pandemic process, the curfews are as follows: People…
A: Program for Pandemic process curfew are as follows: Given condition: ->if the age is above 60…
Q: Any year is entered through the keyboard, write a program to determine whether the year is leap or…
A: #include<iostream> using namespace std; int main() { int year; cout<<"Enter the year in…
Q: write a complete and meaningful paragraph to describe the following “Input and Output Flowchart'…
A: Actually, flow chart is a type of diagram that represents a workflow or process.
Q: 3. Starting with the variables a=1, b=3, fill in the following value chart using the following…
A: given the flowchart and input a=1 and b=3 the calculation and answer is given below.
Step by step
Solved in 2 steps with 1 images
- 3. Write a program to take input for a number, if the number is palindrome, then display its half on the screen, otherwise take input for 2 more numbers, and display their product on the screen. Use minimum two functions including main function.(Modify) a. Modify the program you wrote for Exercise 7 to provide the mass of a person as an output, given his or her weight as an input to the program. Use your program to determine the mass of a person who weighs 140 lbf on Earth. b. Modify the program written for Exercise 7a to also output the person’s weight on Mars and the moon. The pull of gravity on Mars is 12.54ft/sec2=3.728m/s2,andonthemoonis5.33ft/sec2=1.625m/s2.If int x = 10;, int y = 7;, double z = 4.5;, and double w = 2.5;, evaluate each of the following statements, if possible. If it is not possible, state the reason. (3, 4) (x + y) % x x % y + w (z - y) / w (y + z) % x (x % y) * z x % y % 2 (x + y) % z (x % y + z) / w
- 25. Repeat Programming Exercise 24, but the wire is to be bent in the form of a circle. In this case, the user specifies the length of the wire and the program outputs the radius and area of the circle. (You may assume that . Also declare it as a named constant.)17. Redo Programming Exercise 16 so that the user can also input the cost of producing one liter of milk and the profit on each carton of milk.(Statistical) In many statistical analysis programs, data values considerably outside the range of the majority of values are simply dropped from consideration. Using this information, write a C++ program that accepts up to 10 floating-point values from a user and determines and displays the average and standard deviation of the input values. All values more than four standard deviations away from the computed average are to be displayed and dropped from any further calculation, and a new average and standard deviation should be computed and displayed.
- (Conversion) a. Write a C++ program to convert meters to feet. The program should request the starting meter value, the number of conversions to be made, and the increment between metric values. The display should have appropriate headings and list the meters and the corresponding feet value. If the number of iterations is greater than 10, have your program substitute a default increment of 10. Use the relationship that 1 meter = 3.281 feet. b. Run the program written in Exercise 6a on a computer. Verify that your program begins at the correct starting meter value and contains the exact number of conversions specified in your input data. c. Modify the program written in Exercise 6a to request the starting meter value, the ending meter value, and the increment. Instead of the condition checking for a fixed count, the condition checks for the ending meter value. If the number of iterations is greater than 20, have your program substitute a default increment of (ending value - starting value) / 19.4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }(Numerical) Heron’s formula for the area, A, of a triangle with sides of length a, b, and c is A=s(sa)(sb)(sc) where s=(a+b+c)2 Write, test, and execute a function that accepts the values of a, b, and c as parameters from a calling function, and then calculates the values of sand[s(sa)(sb)(sc)]. If this quantity is positive, the function calculates A. If the quantity is negative, a, b, and c do not form a triangle, and the function should set A=1. The value of A should be returned by the function.
- (Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.EXERCISE WEEK 7 (USE C++ CODING) Based on the image attached, shows a statement of a program are in the incorrect order. Rearrange the statements so that they prompt the user to input the shape type (rectangle, circle, or cylinder) and the appropriate dimension of the shape. The program then outputs the following information about the shape: For a rectangle, it outputs the area and perimeter; for a circle, it outputs the area and circumference; and for a cylinder, it outputs the volume and surface area. After rearranging the statements, your program should be properly indented.Consider the following four expressions: (a < 10) & (a > 10) not(a == 10) (a < 10) | (a >= 11) (a < 10) | (a > 10) Assume that a is an integer type variable. Three of these expressions are equivalent to each other, meaning that they will produce the same logical TRUE or FALSE result regardless of the value of a. One out of four will not produce the same result as the other three. Which one is it? (a < 10) | (a > 10) (a < 10) & (a > 10) (a < 10) | (a >= 11) not(a == 10)