Find the error in the following pseudocode: Module main() Call getCalories() End Module Module getCalories() Declare Real calories Display "How many calories are in the first food?" Input calories Declare Real calories Display "How many calories are in the second food?" Input calories End Module For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac).
Q: c# language Open Visual Studio IDE. Create new project and named the project as GreetingApp and the…
A: using System;class GreetingProgram{ static void Main() { /* User Input */…
Q: A company has determined that its annual profit is typically 23 percent of total sales. Write a…
A: The solution to the given question is: Here predicted the profit that will be made from the amount…
Q: Find the error in the following pseudocode.Module main() Call raiseToPower(2, 1.5)End ModuleModule…
A: Here the main module is calling the function raiseToPower (). The function raiseToPower () is…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: Menu based programs are those where the user chooses one of several options and the program…
Q: Can you find the reason that the following pseudocode does not perform as indicated in…
A: Ans-: The vаlue оf the vаriаble "result" is never set аnywhere in the соde. In оther…
Q: What is the error in the following pseudocode? Module main() Call raiseToPower(2, 1.5) End…
A: Module main() Call raiseToPower(2, 1.5)End ModuleModule raiseToPower(Real value, Integer power)…
Q: Pound to Kilogram Converter Write a PYTHON program make a *GUI *that asks the user to enter the mass…
A: The answer is given below.
Q: Project in C language: PLEASE read the INSTRUCTIONS carefully: * The user who is playing this game…
A: INSTRUCTIONS carefully: * The user who is playing this game will have a small visible deck with a…
Q: ramming Exercise 2.6 Instructions momentum.py 1 # Modify the following code The kinetic energy of a…
A: The kinetic energy of a moving object is given by the formula KE = ½mv2 where m is the object’s mass…
Q: Instructions You will need to complete the following objectives as a Python Application 1. When the…
A: Required: You will need to complete the following objectives as a Python Application 1. When the…
Q: Find the error in the following pseudocode: Module main() Call getCalories() End Module…
A: The flow of the above pseudocode will start from the main module. Then the getCalories() module is…
Q: Dividing a program into separate subprograms (such as libraries) is known as: A. modularity B.…
A: Actually, program is a executable software that runs on a computer.
Q: Create a string containing 8 characters and create a register for the first 4 characters of this…
A: Given that, To create a string containing 8 characters and create a register for the first 4…
Q: Objective: Task: ● Draw a horizontal triangle using the asterisk (*) symbol. Write a Java program…
A: Here I have taken the input from the user and stored it in the variable. Next, I have validated that…
Q: A retail company assigns a $5000 store bonus if monthly sales are $100,000 or more. Additionally,…
A: Below are the modules and their description:
Q: Key stroke enacted moving of a ball 1. Start (a) Write a Java program that uses the Up, ↑, Down ↓,…
A:
Q: Write and test the following processes/modules: (a) The module that reads a positive and non-zero…
A: Firstly , we will check if number is greater than 0 only. So, it keeps on asking untill user enters…
Q: object oriented programming (OOP) write a program that store the 10 numbers and then calculate the…
A: object oriented programming (OOP) write a program that store the 10 numbers and then calculate the…
Q: Code for a shoppping bag with spefic items in the bag.
A: Python: Python is a general purpose, high-level, interpreted language with easy syntax and dynamic…
Q: create C language tic tac toe game Program requirements: The program should be designed…
A: Tic-tac-toe is a game of two players taking turns marking spaces on the grids with an X or O. The…
Q: Note: Help me debug and complete code The program should do the following: Show the customer the…
A: Program: Programs contain a set of lines of code, where the instructions are given through these…
Q: A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a…
A: Algorithm for Module printBonus(storeBonus, empBonus): 1. Start. 2. Print "storeBonus". 3. Print…
Q: 1. Write pseudocode module that loops through random numbers until it generates the "lucky number".…
A: The solution to the given question is: PSEUDO CODE function(luckyNumber): declare…
Q: Java Programming control structures:\ The population of Town A is less than the population of Town…
A: I've observed from your code that we don't need to take input for projectedYears, and it's also not…
Q: Module main() // Local variables Declare Real pennies = 1 Declare Integer numdays, count1 //…
A: Actually, program is a executable software that runs on a computer.
Q: object oriented programming (OOP) please give me full answer thanks write a program for a…
A: A calculator is a portable device that helps to perform simple mathematical calculations in our…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: A switch statement is a multiway branch statement that is used when we have multiple conditions and…
Q: Design and Implement a unit converter application which will have different units for length…
A: Answer in step2
Q: Designed and implemented using Visual Basic as a calculator to carry out the operations of addition,…
A: 1. firstly create a form name it as form 1.2. declare the variable which is going to be used in…
Q: A program module that contains a series of statements that carry out a task is a O a. package b.…
A: Statements are instructions that carry out task
Q: Draw the hierarchy chart and then plan the logic for a program needed by Hometown Bank. The program…
A: Hierarchy chart:
Q: Note: write a Jave Progame below Question2: Suppose a retail business sells an item that is…
A: Question2: Suppose a retail business sells an item that is regularly priced at $98 and is planning…
Q: // Main module Module main() // Local variables Declare Real rate, hours // Get the rate of…
A: A program is used to interact with the computer. A program contains a piece of code, that contains…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: #include <stdio.h> int main(){ int budget,m,n,p,d; printf("\n Menu\n Destination…
Q: Module main() // Local variables Declare Integer books // Get number Call…
A: #include<iostream>using namespace std; int getBooksPurchased(){ int book; cout<<"Enter…
Q: Module main() // Local variables Declare Real pennies = 1 Declare Integer numdays, count1 //…
A: Flowchart of main module:
Q: Module main() // Local variables Declare Real lengthA, widthA, areaA Declare Real…
A: Flowchart is a diagrammatic representation of sequence of logical steps of a program. Flowcharts use…
Q: A county collects property taxes on the assessment value of property, which is 70 percent of the…
A: #importing tkinter libraryimport tkinter as tk #function for calculate Assessment Value and Property…
Q: Write the pseudocode for a module named netPay. The module will accept 3 parameters by value. The…
A: Pseudocode Instructions:Define the module and show three parameters.Calculate gross pay, net pay and…
Q: Combine your Game1 program (the guessing game) with the graphics program I posted. Your "windows"…
A: import randomfrom graphics import *def main(): win = GraphWin("GameWin Program", 300, 300)…
Q: In a program, a may fill several consecutive lines. block comment b. square comment c. multiline…
A: Task : Choose the correct option for given question.
Q: Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The…
A: A. 1. declare function f_to_c with parameter num 2. the conversion of Celsius to Fahrenheit is…
Q: a. Draw the hierarchy chart and then plan the logic for a program that calculates a person's body…
A: The hierarchy chart is shown below : Main Prompt user for height in inches and receive input…
Q: Module main() // Local variables Declare Real width, length, area // Get the rectangle's…
A: A function is the set of operations performed as a group. A program should contain one main()…
Q: c# language Create a console program that will perform the following: • Ask the user to enter five…
A: using System;using System.IO;public class ComputeAverageProgram{ public static void Main() {…
Q: write the pseudocode statement that will accomplish the task required 1 A computer application…
A: A pseudocode is code written Which is suitable and user readable for any programming language.
Q: Use object-oriented design to design a class called Rectangle that will receive the length and…
A: Let’s consider an object-oriented design to design a class called Rectangle that will receive the…
Q: Create Tic Tac Toe in C language The program should be designed according to classical 3x3…
A: The below program shows how how to Play Tic Tac Toe in Programming Language
Q: Draw the hierarchy chart and then plan the logic for a program needed by Hometown Bank. The program…
A:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write the pseudocode for a module named netPay. The module will accept 3 parameters by value. The parameters are all real numbers representing hourly pay rate, number of hours worked, and witholding percentage. The module will calculate gross pay by multiplying the hourly pay rate by the number of hours worked. It will then calculate the deductions by multiplying the gross pay by the witholding percentage. Finally it will calculate the net pay by subtracting the deductions from the gross pay. The module will display the net pay.i get error no module named tkinter, also this needs to be done on processing 3 if it is not, thanksC++ code A simple version of snakes and ladderImplement a game that initially asks how many players will play the game. The game will then ask the name of each player. The game is played as follows:1. The game is played iteratively. In every iteration, every player takes turn to roll a dice. The face value of dice is added to the total score of the player.2. The first player to reach 100 score gets 1st position. The second player to reach 100 score gets 2nd position.3. When a player reaches 100, he no longer remains part of the play. If current score + face value is greater than 100, then the player will retry in the next iteration, i.e., the score must exactly become 100.4. There are ladders at 20 and 60. If a player’s score becomes exactly 20, the score becomes 40. If a player’s score is exactly 60, the score becomes 75. Similarly, there are snakes at 50 and 90. If a player’s score is exactly 50, the score become 40. If a player’s score is exactly 90, the score becomes 79.5. When n-1…
- A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a $500 store bonus is awarded. Additionally, they are doing away with the previous day off program and now using a percent of sales increase to determine if employees get individual bonuses. If sales increased by at least 4% then all employees get a $50 bonus. If they do not, then individual bonuses are 0. Step 7: The final step in completing the pseudocode is to call all the modules with the proper arguments. Complete the missing lines. Module main () //Declare local variables Declare Real monthlySales Declare Real storeAmount Declare Real empAmount Declare Real salesIncrease //Function calls Call getSales(monthlySales) Call getIncrease(salesIncrease) Call ______________(_______________, _____________) Call ______________(_______________, _____________) Call ______________(_______________, _____________) End ModuleProblem Description Write a JAVA program that will read all words from a passage and store them in BST. The program then will display a menu and perform the following task: Delete a word. If a word exists, update the word frequency otherwise print word not exist. Search a word. If a word exists, print the word and its frequency otherwise print not exist. Add a new word. If the word is in the passage, update its frequency. Print all words and their frequency in ascending order. Input The input of this program is a passage. A passage consists of N words and symbols. Symbols that will be considered in the passage are full stop (.), comma (,), question mark (?) and exclamation mark (!). The passage will have M unique words, where the M is less than or equal to N. Followed by the input code and the required data as specified in the sample input-output. Input Stay at home, stay safe and stay healthy. Practice social distancing at work and at home. Help reduce the risk of infection…Using JAVA code: Please make a graphical interface that will convert infix to postfix expression. Consider the code notes below: The input expression should not have any spaces in between the characters. Output an error message if the expression cannot be converted to its postfix expression equivalent. The input (postfix) expression’s operands and operators must be separated by space. Output an error message if the expression cannot be evaluated.
- Pound to Kilogram ConverterWrite a PYTHON program make a *GUI *that asks the user to enter the mass of an object in pounds and then calculates and displays the mass of the object in kilograms. (One pound is equivalent to 0.454 kilograms).Task1: Arithmetic Operations (Java) An electronics store is giving discount based on the number of items purchased as given in the table below: Number of items Discount Up to 5 0 >5 but <10 5% >10 but <15 10% >15 but <20 15% >20 20% Write a Java application to perform the following: Prompt the user for entering the number of items purchased and the total amount; Calculate the net amount to be paid after discount; Output the summary of the task as follows: Total number of items and bill amount; The discount in %; The net amount to be paid in three significant digits after the decimal point.Machine Problem:Write a Java or C++ program that will display the given menu: -----A Simple Library System----1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book (optional)10. Exit ➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding…
- Write a Java or C++ program that will display the given menu: A Simple Library System1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book (optional)10. Exit➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding record, else display…Write a Java or C++ program that will display the given menu: A Simple Library System1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book (optional)10. Exit➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding record, else display…Can you please add an execution chart for the code that was answered by tutors like the example below: execution chart: 1.0 Main() 2.0 CalculatePropertyTax() 3.0 displayMessage( input string messageToDisplay) 3.1 return double getHomeValue() 3.2 return boolean checkHomeValue() 3.3 return double applyPropertyTax(input double homeValue) 3.4 displayPropertyTax(input homeValue) 3.5 return Boolean queryMoreData() 4.0 displayMessage(input string messageToDisplay) 4.1 return char getYesNo() 4.2 return char convertCase(input char) 3.6 displayErrorMessage()