Q4 Based on Figure Q4, answer the following questions. This program draws a triangle on the screen My name is My matric no is |I want to print triangle so will select no 1 = 1 Please enter 'y' to continue : y Figure Q4
Q: Write a pseudocode algorithm to prompt the user to enter the current year and the year a person was…
A: 1) Below is Pseudocode program to input current year and born year of a person, calculate the age of…
Q: Algorithm Flowchart 1. Start 2. Sum = 0 3. Get a value 4. sum sum + value 5. Get another value? Yes…
A: To create the flowchart for the given algorithm. The given algorithm is: Start Sum = 0 Get a value…
Q: A subject has an assignment and an exam. Both the assignment and exam are marked out of 100. The…
A: The solution of given program contain the following terms:Input: Student Name, Assignment marks and…
Q: TASK: Draw the Flow Chart. Construct C++ program. QUESTION 1 Dr. Siti would like to calculate her…
A: GIVEN: Based on the values of the total body fat and weight, calculate the BF% The value of BF% is…
Q: Use logical equivalences to perform a direct proof that the two following logical statements are…
A: Given, two statements Statement 1: !(P OR (!P AND Q)) Statement 2: !P AND !Q Now, I've to prove…
Q: ext Book: Starting Out with Programing Logic & Design 5 edition Write a program that will take in…
A: ANSWER:-
Q: #Python Program-related question. So need the answer in python expressions. #Do not use the 'round'…
A: Display message to the user and read the inputs. Check if the work hours of the employee are less…
Q: Program to Print Sum of Negative Numbers, Positive Even Numbers and Positive Odd numbers in a List
A: Check the negative numbers in the list then Calculate sum of negative numbers Check the positive…
Q: A: Put (T) or (F) and correct the false for the following: (chose 5 only) (15 marks) 1. A constant…
A:
Q: characters that represents a maze. Each position can contain either an X or a blank. Starting at…
A: Write a function that accepts an 8 by 8 array of characters that represents a maze. Each position…
Q: Exercise #4: Draw a Pattern Write a program that prompts the user to input a positive odd integer…
A: Given: To write a program to print diamond shape. Take symbol and number of lines from user. Note:…
Q: QUESTION 3 (1 hour: solution by 6.00pm) Based on Question 1, create a program that calculate the…
A: Solution: Salesman Java Program:
Q: V. Problem Solving Write the whole formula of the cells based on the data below in the item number…
A: The given problem is related to Excel formulas where the requirement is to complete the provided…
Q: Create a program that asks the user to enter using the keyboard: • the value of 'a' • the value of…
A: The program text and the image of the formatted program are shown below: import matplotlib.pyplot as…
Q: COSC 1336 – Programming Fundamentals I Program 7 – Repetition Structures and Files Python…
A: def apply_raise_percentage(sal): #stores percentage raise rate, when called returns the correct rate…
Q: Q1)Research our planet population growing issues online. Get approximations for the current…
A: The Population is generally measured in crores and the population growth rate has decreased from 1.5…
Q: Python: What does each section of this program do? What are the five errors (not counting…
A: Python program to calculate the wish list for the user. Get the name and cost of an item from the…
Q: grade, based on the marks numbers entered by the user (Using the table below). From To Grade 90 100…
A: Please find the answer to the above question below:
Q: Program statement in programming language 'PASCAL' usually ends with a a. colon b. semicolon c.…
A: Required: Program statement in programming language 'PASCAL' usually ends with a
Q: Question 1 Write an algorithm that lets the user enter several items prices (number of items is…
A: ALGORITHM - STEP 1 - Create while loop and keep taking input from user and store all item prices in…
Q: I am using Python. How can I change my code so that it will print the way it needs to?
A: The program asks for the input for three values: boxwidth (number of rows) boxheight (number of…
Q: Right oriented hollow triangle where instead of stars, numbers will be printed. The shape of the…
A: Given:
Q: Task 2: Multiply of two fractions The formula to find the Multiply of two fractions is: 6a 4a +20…
A: Below I have provided C++ Programming. Also, I have attached the screenshot of the code and output…
Q: Program # 2 function fl else plot the function /2. If either x or y is zero, ask user to enter…
A: # Import the required libraries import math import matplotlib.pyplot as plt # Input two numbers x =…
Q: Question 1 Write an algorithm that lets the user enter several items prices (number of items is…
A: a loop can be infinite when the condition is true and to exit from the loop immediately break…
Q: Q12.docx > Q/ The following table shows the order of five students degrees in mathmetics, physics…
A: The algorithm for the given input data. Algorithm: step 1 Start step 2 Input S // No of…
Q: QUESTION1. Write I program that asks the user to enter today's sales for five stores. The program…
A: import java.util.Scanner; public class Main { public static void main(String[] args) { double[]…
Q: ID: A 9. Directions: The question or incomplete statement below is followed by four suggested…
A: We have been given a question in which four statements are provided which result in correct form of…
Q: Make a program that will convert an inputted number in inches (in.) and display its equivalent…
A: C programming language is a general purpose procedural computer programming language supporting…
Q: 3- Which sentence will show on display screen for the following program: program myprog…
A: Hello student. Greetings Hope you are doing great. I will try my best to answer your questions.…
Q: Q1. Write an algorithm to check whether the blood donor is eligible or not for donating the blood.…
A: As per our guidelines we are supposed to answer only one question. Kindly repost other questions as…
Q: Write a program that will take in basic information from a student, including student name, degree…
A: Ask the student name. Ask the degree program name. Subtract the number of credits taken so far from…
Q: number entered is positive or negative using GoTo Statement
A: The program is solved by first taking the input number, then checking if its negative or not.If its…
Q: 10. The algorithm shown in Figure 1-13 should calculate and print the gross pay for five workers;…
A: Algorithm There are four lines missing in the given algorithm. There is an end repeat command at…
Q: Task 2: Multiply of two fractions The formula to find the Multiply of two fractions is: 6a 4a+20…
A: #include <iostream>#include<math.h>using namespace std; int main(){float a;float…
Q: Question 01: Help your professor to calculate the exam average and the number of students passing…
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner scan =…
Q: area of the room (length * breadth * height). In the main program, assign values to the (length,…
A: TASK : 1 public class room { public double length,breadth,height; //public class variable public…
Q: LAB TASK I. A polynomial in one variable is an arithmetic expression of the form anx +...+ a₂x² +…
A: //for same constant value#include <iostream>#include <math.h>using namespace std; int…
Q: Slove this using Midpoint line algorithm computer graphics subject int X1 = 2, Y1 = 2, X2 = 8, Y2…
A: Given points are, X1 = 2, Y1 = 2, X2 = 8, Y2 = 5 In Midpoint line algorithm, it contains many steps…
Q: Q/ The following table shows the order of five students degrees in mathmetics , physics and english…
A: While doing programming in any programming language, you need to use various variables to store…
Q: Lab 1-1: Stop and Analyze A local business employs five salespeople and pays a 3% bonus on a…
A: Logic:- initiate a loop from i=0 to 4 Input name Input amount Calculate…
Q: Q/ The following table shows the order of five students degrees in mathmetics , physics and english…
A: While doing programming in any programming language, you need to use various variables to store…
Q: to use Midpoint Line Drawing Algorithm. Co
A: draw lines that show 03 digit, you need to use Midpoint Line Drawing Algorithm. Computer graphics.…
Q: The following program moves a robot in a grid of squares. The initial position and direction of the…
A: Solution
Q: (Sort three integers) Write a program that prompts the user to enter THREE integers and display the…
A: #include<iostream> using namespace std; void swap (int &a, int &b){ //This…
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A:
Q: he tribonacci series is a generalization of the Fibonacci sequence where each term is the sum of the…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I USED PYTHON FOR THE SOLUTION. Define…
Q: Algorithm Do the task in the same steps as the picture Tip, Tax, and Total Design a program that…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Q6:) Write a code program to draw the figure as shown below. Start from point A( 40, 60 ). Use form…
A: Answer:- The context.scale() method applies scale factors to the context's coordinate system, making…
Q: Using Python: The credit plan at TidBit Computer Store specifies a 10% down payment and an annual…
A: Code price=float(input("Enter the purchase price: ")) monthlyPayment=price*0.05 print("Month…
Step by step
Solved in 2 steps with 2 images
- Birthday party At Lili's birthday party, there was a game arranged by Jojo as the host. That game is to distribute Y number of candy to X number of people where all the candy tastes sweet except for one last candy which tasted like rotten nuts. Candy distribution will be sequentially starting from position Z and if past the last position then the distribution of candy continues to the first position. Write down the person in which position will get the last candy. Input FormatThe first line of input is T, which is the number of test cases.The second row and the next number of T rows are X, Y, Z.X is the number of people to whom the candy will be distributed.Y is the number of candy available.Z is the starting position of the person to whom the candy will be distributed. Output FormatA string “Case #N: “ and a number representing the position of the person who got the last candy. Constraints? ≤ ? ≤ ???? ≤ ?, ? ≤ ???? ≤ ? ≤ X Sample Input 43 4 13 5 24 2 24 5 2 Sample OutputCase #1: 1Case…Birthday party At Lili's birthday party, there was a game arranged by Jojo as the host. That game is to distribute Y number of candy to X number of people where all the candy tastes sweet except for one last candy which tasted like rotten nuts. Candy distribution will be sequentially starting from position Z and if past the last position then the distribution of candy continues to the first position. Write down the person in which position will get the last candy. Input FormatThe first line of input is T, which is the number of test cases.The second row and the next number of T rows are X, Y, Z.X is the number of people to whom the candy will be distributed.Y is the number of candy available.Z is the starting position of the person to whom the candy will be distributed. Output FormatA string “Case #N: “ and a number representing the position of the person who got the last candy. Constraints1 ≤ T ≤ 1001 ≤ X, Y ≤ 1031 ≤ Z ≤ X Sample Input 43 4 13 5 24 2 24 5 2 Sample OutputCase #1: 1Case…Tabs to escape in the vertical direction. \n O lb This function returns a non-zero value if char is a letter of the alphabet, and a zero value otherwise. The letter O represents the whole alphabet () A Letter () This is the O isalpha() () This method returns non-zero if char is a punctuation character (other than the space character), and 0 otherwise. issymbol O is punctuation O is special characters ()
- Function for button "Publishing Date": • Name this function by your last name (for example, function yamoutl)). When the user clicks on the button "Publishing Date" (after filling all the textboxes), the current date and time will be printed after the text "Published on:" CSCI375 Grades Exam-1 (70 Exam-2 98 Project 86 Exam-3 80 Show the Grades Your Grades: Exam-1 - 78, Exam-2 - 98, Project - 85, Exam-3 - 80 Publishing Date Published on: 5/10/2021, 5:39:08 PM Change Background ColorCSCI250L Sample Exam 1 Spring 2020-2021 Question1 (50 pts) Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program will then: Calculate the bonus: bonus = number of children * $25 Calculate the new salary: new salary Apply a tax of 10% and find the paid salary: paid salary = new salary * (1 – tax) %3D salary + bonus The program will then display all the information needed as shown in the sample run below Sample Run: Enter the name of the employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0Flag question Let A = {1, 2, 3, 4, 5, 6, 7} Let B = {3, 4, 5, 6, 7, 8, 9} Let X = 13 Let X=X+|An B| Let X=X+|A U B| What is the mystery number X? Answer:
- question is attached as pictureLAB ASSIGNMENTS, CONT. 2. sandwich.py - follow the instructions below. You may adjust the food items to include your personal favorites. • It uses all of our standard mipo_ex features. • The menu should have numbered or letter options. Sandwich Maker Write a program that asks users for their sandwich preferences. The program should use PylnputPlus to ensure that they enter valid input, such as: Using inputMenu() for a bread type: wheat, white, or sourdough. Using inputMenu() for a protein type: chicken, turkey, ham, or tofu. Using inputYesNo() to ask if they want cheese. If so, using inputMenu() to ask for a cheese type: cheddar, Swiss, or mozzarella. Using inputYesNo() to ask if they want mayo, mustard, lettuce, or tomato. Using inputlnt() to ask how many sandwiches they want. Make sure this number is 1 or 120 00T 110 more. Come up with prices for each of these options, and have your program display all the choices and their prices plus a total cost at the very end. 3 130ID: A 9. Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case. Consider the following program. ode segmer own down count 1 ch of the fo sum 0 REPEAT DISP REPEAT 10 TIMES REPEA DI sum Sum + count PEAT 3 TIM count count + 2 REPEAT 2 DISPLA DISPLAY sum SPLAY "dow The program displays the sum of the even integers from 0 to 10. Which of the following describes the result of executing the program? The program displays the sum of the odd c. integers from 1 to 9. a. The program displays the sum of the even integers from 0 to 20. d. The program displays the sum of the odd integers from 1 to 19. b. de
- * Question Completion Status: Moving to another question will save this response. Quèstion 5 Simplified form of F=y +x y+y xz is xy + y + x Z xy + y (1 + y z) xy +y (x+y z) xy +y +xz A Moving to another question will save this response.T=63, n=12 and A=(3,5,8,8,9,16,29,41,50,63,64,67). Draw the corresponding walkthrough as shownbläi 5 The following code is Fori=1 to 10 Form1.currentx3500*i Form1.currenty3D500*i Form1.print i Nexti To print the numbers from 1 to 10 at distance of 500 wips To print the numbers from 1 to 10 in the middle of screen To print the numbers from 1 to 10 at the edge To print the numbers from 1 to 10 500*i wips To print the numbers from 1 to 10 diagonally