Write pseudocode to represent the logic of a program that allows the user to enter values for the current year and the user's birth year. The program calculates the age of the user this year. The program outputs the age.
Q: Write the pseudocode that will prompt a user for the required information and accurately represent…
A: We need to compare obtained score with 30%of exam marks and 50% of final marks
Q: ( write in c language) write A program that inputs three different integers from the keyboard , then…
A: A C program for the given criteria is as follows,File name: “main.c”#include <stdio.h>int…
Q: Write pseudo code and design flowchart that reads two numbers and multiplies them together and print…
A: As per the question statement, We need to write pseudo code and design flowchart that reads two…
Q: The following program reads a number, determines whether the number is odd or even, and print the…
A:
Q: Find the errors in the program and rewrite the correct statements P1=int(input("Enter P1 Value="))…
A: the corrected code with all errors removed is given below.
Q: A program is required by a company to read an employee‘s number, pay rate and the number of hours…
A: Validation Process: Assume that the company follows below rules, The maximum number of hours an…
Q: WRITE A PROGRAM TO CALCULATE THE AGE OF THE USER AFTER THE USER ENTERS HIS OR HER YEAR OF BIRTH
A: #Python code to calculate Age #Importing required modulefrom datetime import date #Taking user input…
Q: Write pseudocode to represent the logic of a program that allows the user to enter two values. The…
A: Case 1: Difference is negative or positive depends on larger and smaller number Real…
Q: Find the errors in the program and rewrite the correct statements B1=int(input("Enter B1 value))…
A: Given code B1=int(input("Enter B1 value")) B2=int(input("Enter B2 value"))C=B2\B1…
Q: Use c++ programming language: Write a program that prompts the user to input the amount of money…
A: - We need to create a C++ code for ATM machine simulator.
Q: Write the Pseudocode and Flowchart for the following programming problem. Write a program that…
A: Pseudocode: Step 1: define the constant value for tax as 6%Step 2: define the tip percentage for…
Q: Write the pseudocode on a piece of paper and explain your answer. 1. Write the pseudocode to…
A: Required: Write the pseudocode on a piece of paper and explain your answer. 1. Write the pseudocode…
Q: .1 A cake company wants to represent the logic of a program that allows the user to enter the three…
A: Given: There is a cake company who want to design the logic of program that allow the user to enter…
Q: Draw the hierarchy chart and then plan the logic using a PSEUDOCODE (ONLY) for a program needed by…
A: The hierarchy charts display the realtionship between different modules. The modules we have used in…
Q: Sample Input/Output: Depicted below are sample outputs when the program is executed (the items in…
A: GIVEN:
Q: Sample Input/Output: Depicted below are sample outputs when the program is executed (the items in…
A: Hello student Greetings Hope you are doing great. Thank You!!!
Q: using python Write a wholly creative quiz program that consists of three original questions that…
A: Below is the required python program: - Approach: - Defining the main function. Initializing the…
Q: Design a flowchart and write a pseudocode to compute pay for employees. The program asks the user to…
A: Pseudo code : Pseudo code Lets assume required sentinel value is “stop” Start Declare and…
Q: I. Problem Statements: Create a VBA program that will compute and display the following: 1. Area of…
A: According to the company's policy, we are allowed to answer only one question at a time. Kindly…
Q: Design the logic for a program that allows a user to enter 20 numbers, then displays each number and…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: any amount of ed. Design the logic for a program that allows a user to enter 20 numbers, then…
A: Pseudocode Pseudo code is a term which is regularly utilized in programming and calculation based…
Q: 1. Write an algorithm and flowchart to add the following sequences: a. 1,3,5,7,9. . . N (series of…
A: Algorithm and flowchart of the above questions are as follows:
Q: The relation between two variables B and u is ß = µ2 - 3µ + 10. Write a Python program in which the…
A: Programming the following equation using python is very easy Step 1 -> We need two variables…
Q: COP2002: Programming Logic & Design with Python Project 6 Project: Create a program that calculates…
A:
Q: Write the pseudocode for the following statement: The program is to input an examination mark and…
A: Here, we first take 10 marks from the user, using a loop and store the marks in an array of size 10…
Q: 2. a. Design the logic for a program that allows a user to enter 20 numbers, then displays each…
A: In this question we have to write a C++ program in which user have to enter the numbers and find the…
Q: Write a C-language program using functions that will depict the flowchart below: START float square…
A: Algorithm: 1. Declare square sum method and initialize it 2. Declare square method and initialize it…
Q: Exercise 1 Write pseudocode to represent the logic of a program that allows the user to enter…
A: here in this question we have asked to write a pseudo code to find the area of wall .length an width…
Q: Identify the logic errors and state the effects to the output
A: All the variables has to be declared prior to its usage if block has to be embedded in parenthesis…
Q: Find the errors in the program and rewrite the correct statements B1==int(input("Enter B1 value"))…
A: I have given an answer in step 2.
Q: Design the logic for a program that allows a user to continuously enter numbers until the user…
A: The program takes numbers as input from the user, and adds those numbers, till the user does not…
Q: Instructions An object's momentum is its mass multiplied by its velocity. Write a program that…
A: Given:
Q: Using c++ Write a program that asks the user to enter 4 numbers and then outputs the min of these…
A: Task :- Write a C++ program to find the min number from 4 input numbers. C++ program :-…
Q: Pseudocode should be written after the source code to ensure that the program was written correctly.…
A: Answer- (b) False
Q: Write a program that performs as a very simple calculator. Your calculator should be able to handle…
A: GIVEN: Write a program that performs as a very simple calculator that handles the four basic math…
Q: This program is to calculate total marks, determine grade of student and count how many students get…
A: The given problem is to be solved using Cprogramming lnaguge where the user will enter the matric…
Q: Draw the hierarchy chart and then plan the logic using a pseudocode for a program needed by…
A:
Q: Write and test a program that computes the area of a circle
A: The implementation of the program in Python 3 is as follows: SOURCE CODE: PI = 3.14 radius =…
Q: Pseudocode(G) Write pseudocode instructions to find the average of an unknown number of grades…
A: GIVEN: Write pseudocode instructions to find the average of an unknown number of grades entered by…
Q: One metric ton is approximately 2,205 pounds. Write a program that prompts the user to input the…
A: The below given C++ program will obey the following rubrics: Including necessary header files. In…
Q: Sample output: Please enter a value between 1 and 10000: 5000 LOWER Please enter a value between 1…
A: import java.util.Scanner; public class GuessingGameMain { public static void guessingGame()…
Q: you add the input and output statements to a partially completed Python program. When completed, the…
A: Solution: Program Approach: In the program written below we are taking input as month, day and year…
Q: Not allowed to use decisions or loops, if then statements, I haven't learned that. I have to use…
A: Since here no programming language is specified. So, we are providing the solution in Java. The…
Q: Create a pseudocode that will compute two constant numbers. Display the sum, difference, product,…
A: Given that, Take two constant numbers and compute sum, difference, product and quotient Algorithm:…
Q: (b) The following equations are used to calculate the voltage and power of a load in an electric…
A: b. i. Flowchart:
Q: Calculate and report the average grade for a class. • Output: Average grades • Input: Student grades…
A: Source Code: sub_grades=[12,56,78,98,45,67]; %subject grade…
Q: Design the logic for a program that allows a user to enter 20 numbers, then displays all of the…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: (This needs to be coded using Python) Write and test a program that accepts the user’s name (as…
A: The below-given python program will obey the following rubrics: Displaying message to the user to…
Q: Find the errors in the program and rewrite the correct statements AA=int(input"Enter the AA Value")…
A: Errors in the given python code are: In the first line AA=int(input"Enter the AA value") The…
Q: esign Pseudocode for a program that outputs every number from 1 through 15, the values times 10 and…
A: The given problem is related to algorithm and solving the problem using an algoritham. The program…
Write pseudocode to represent the logic of a
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five-day week and the hours worked in a 252-day work year. The program outputs all the results.use C++ programming language Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an inpatient or an outpatient. If the patient was an inpatient, the following data should be entered: The number of days spent in the hospital The daily rate Charges for hospital services (lab tests, etc.) Hospital medication charges If the patient was an outpatient, the following data should be entered: Charges for hospital services (lab tests, etc.) Hospital medication charges Use a single, separate function to validate that no input is less than zero. If it is, it should be reentered before being returned. Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the…voting.py Write a Python program that takes as input the user age. if the person's age is less than 18 the program should display "You are too young to vote" Otherwise the program should proceed by asking if the person did register to vote or not. If No the program should display:" You need to register before you can vote" if Yes the program should display: " You can vote"
- A Charge Account Statement Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company. The program should take as input the previous balance on the account and the total amount of additional charges during the month. The program should then compute the interest for the month, the total new balance (the previous balance plus additional charges plus interest), and the minimum payment due. Assume the interest is 0 if the previous balance was 0 but if the previous balance was greater than 0 the interest is 2% of the total owed (previous balance plus additional charges). Assume the minimum payment is as follows: new balance for a new balance less than $50 $50.00 for a new balance between $50 and $300 (inclusive) 20% of the new balance for a new balance over $300 So if the new balance is $38.00 then the person must pay the whole $38.00; if the balance is $128 then the person must pay $50; if the balance is $350 the minimum…Research current rates of monetary exchange. Write pseudocode to represent the logic of a program that allows the user to enter a number of dollars and convert it to Euros and Japanese yenCreate a flowchart using Flowgorithm and Pseudocode for the following program example: You are to design a program for Alexander's Coffee Shop providing customer research data. When a customer places an order, the clerk asks the customer for their zip code and age. The clerk enters this data as well as the number of items purchased. The program should operate continuously until the clerk enters a 0 for the zip code at the end of the day. If the clerk enters an invalid age (defined as less than 10 or more than 100), an error message is displayed and the program re-prompts the clerk continuously to enter a valid age. At the end of the program, display the average customer age and the total number of items purchased.
- METHODOLOGY A bookstore owner wants you to write a program that calculates the gross pay of an employee. The input to the program is the number of hours the employee works in one week and the employee’s hourly pay rate. The program is to calculate the employee’s gross pay including the possibility of overtime pay. Regular pay is the number of hours the employee worked (up to 40 hours) times the hourly rate. The program is to compute an overtime pay if the employee worked more than 40 hours. All hours beyond 40 should be multiplied to 1.5 for the OT differential pay The program should output the worker’s regular pay, overtime time, and the gross pay (sum of the regular pay and overtime pay). Create an IPO and flowchartUNIVERS UNIVER GE AL-FARABI UNIVERSITY COLL GE Homework 3: Write a program to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at each time you are going to execute the program. After you execute the program separately at each time your run the program the output look like below: Enter Enter + to add between two nunbers - to subtract betveen tuo nunbers to nultiply between tvo nunbers to divide betueen tuo nunbers Enter Enter Enter the o peration :+ Enter the ist nunber :2.3 Enter the 2nd nunber :5.6 The result is 7.980 Press any key to continue. . .- OR to add betueen two nunbers to subtract between two nunbers * to nultiply betveen two nunbers / to divide between two nunbers Enter Enter Enter Enter Enter the operation :- Enter the 1st nunber :2.3 Enter the 2nd nunber :5.6 The result is -3.300 Press any key to continue ...- Al-Farabi University College…Instructions The program in the Programming Example: Fibonacci Number does not check: Whether the first number entered by the user is less than or equal to the second number and whether both the numbers are nonnegative. Whether the user entered a valid value for the position of the desired number in the Fibonacci sequence. Rewrite that program so that it checks for these things. NOTES: If an invalid number is entered for case 1 above, prompt the user to enter both numbers again. If an invalid number is entered for case 2, prompt the user to enter a value until a valid value is entered. the code: #include <iostream> using namespace std; int main() { //Declare variables int previous1; int previous2; int current; int counter; int nthFibonacci; cout << "Enter the first two Fibonacci numbers: "; //Step 1 cin >> previous1 >> previous2; //Step 2 cout << endl; //verify the first two values if(previous1<0 && previous2>0)…
- Design the logic for a program that allows a user to enter 10 numbers, stores the numbers in an array, then displays all of the numbers, the largest number, and the smallest. For this homework assignment you need to: create a solution algorithm using pseudocode create a flowchart using RAPTORWrite the Flowchart for the following programming problem based on the pseudocode below. Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether the answer was right or wrong, and accumulate the correct values. After the 10 questions are asked, calculate the average correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that checks to see if the answer is right and…PROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum…