If the programmer translates the following pseudocode to an actual programming language, a syntax error is likely to occur. Can you find the error?Declare String 1stPrizeDisplay "Enter the award for first prize." Input 1stPrizeDisplay "The first prize winner will receive ", 1stPrize
Q: The greatest common divisor, also known as GCD, is the greatest number that will, without a…
A: Answer: Below is the code of GCD:
Q: All of the following are valid points concerning the syntax of the if statement in python, EXCEPT!…
A: Answer : option c is the correct answer.
Q: Write a program to display fruit sales receipts. Python language only Apple: Pink Lady -…
A: type1 = input("Which kind of apples would you like: (P)ink Lady 4.99/kilo (F)uji 5.99/kilo: ")qt1 =…
Q: Ensure the file named Furniture.java is open. The file includes variable declarations and output…
A: Ensure the file named Furniture.java is open. The file includes variable declarations and output…
Q: If the following pseudocode were an actual program, why would it not display the output that the…
A: The Pseudocode is the informal way of writing instructions that shows the basic concept used in 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: 1. If the following pseudocode were an actual program, why would it not display the output that the…
A: by bartleby guidelines, i am able to do only one question so pls ask another questions seperately.
Q: f: expected a question and two answers, but found only 2 parts
A: The typical syntax of conditional if in Racket is as follows: (if test-expression then-expression…
Q: // This pseudocode is intended to determine whether students have // passed or failed a course;…
A: Pseudocode Pseudocode is a loose way to describe programming which doesn't need to conform to any…
Q: O Problem program.py > haircolor=str(input("What color is your hair? ")) eyeColor = str(input("What…
A: 1) Your code is almost correct. Below are some recommended changes so it can produce matching output…
Q: Answer this question by submitting a copy of the following code segment, but with the bugs fixed.…
A: The error in the given code segment is, in the if clause we need to use == to check the value of…
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: 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: Description Note: You must use the values given and you must not "hard-code" results. Write a Java…
A: logic:- read n if n>=18 display “person can vote” else display “person cannot vote” end.
Q: For this lab you will do 2 things: Solve it using pseudocode (no python syntax allowed) Code it in…
A: 1. Start2. Read age from user3. Read martial status from user4. Check age<16 then go to step 85.…
Q: Programmers refer to the goal of solving a problem as the . a. input b. output c. processing d.…
A: Solving a problem Output is the data generated by a computer. It includes data at a software level…
Q: Problem John is developing a python program that comes up with a number and allows the user to guess…
A: Algorithm Steps for the required guess function:- In the first If statement, check if…
Q: Create an investment-value calculator) Write a program that calculates the future value of an…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: rite a program to sum of two numbers. Solve this question with steps please.The subject is…
A: Define header file <stdio.h> for io operations. Define main function. Define int variables…
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: A __________ error does not prevent the program from running but causes it to produce incorrect…
A: Required: A __________ error does not prevent the program from running but causes it to produce…
Q: Q2/ Design a program with Writing a programming code using the Visual Basic language to calculate an…
A: Step 1 : Start Step 2 : In the Main module, Declaring the variables to hold the sales profit of the…
Q: An argument is expressed in English below. Sara is not excited. If Sara is not excited, then Sara…
A: Ans.) Sara is not excited == ~q If sara is not excited, than she will go to party== ~q --> r…
Q: Algorithm that captures a person's age and determines how much they have to pay for a movie ticket.…
A: Input age Based on age, update price Finally, print price
Q: By using pseudo-code and top down stepwise refinement, formulate an algorithim. Java program. A…
A: Answer : Algorithm : Step 1: Start Step 2 : Declare variables double gross, earnings;…
Q: Write a program that divides a number entered by the user by 2 by language visual basic.
A: In VB.Net Console.ReadLine() is been used to read the input from the console.
Q: This pseudocode segment is intended to compute and display the average grade of three tests for any…
A: #include<stdio.h> //header file int main() //main method declaration { int test1,…
Q: Kim wants to buy a car. Help Kim compute the monthly payment on a loan, given the loan amount, the…
A: // Since programming language is not specified, we will be answering this question in c++. #include…
Q: A mistake in the underlying algorithm for your program is called as: Syntax error Logic error…
A: According to the asked question, the solution is given below with a proper explanation.
Q: write C++ code for the fallowing pseudocode // Pseudocode Project 13 // Start // Declarations…
A: Complete C++ Code for the given Pseudocode is below:
Q: A variable name in the programming language Visual Basic must begin with a letter (uppercase or…
A: Answer:Number of letters (uppercase + lowercase) = 26 + 26 = 52Number of digits (0 to 9) = 10Number…
Q: The code must be in Java language The program will find all of the Fibonacci numbers which are…
A: Find Fibonacci Numbers, if its prime print it, otherwise don't print it.
Q: Create an algorithm that will prompt a user to answer the following question. “Do you want to…
A: The given problem will take Fahrenheit degree temprature and calculate the temprature in Celsius…
Q: In Python, Assuming minors are younger than 13 and adults are older than 19, write a program that…
A: Solution programming Approach Print a message Declare a variable of integer type and take the…
Q: Determine whether the following arguments are valid: It is necessary to know how to program, in…
A: Let P(x )= the student x knows how to program. let C(x) =the student x does well in computer…
Q: Trying to divide by zero will produce a(n). error. O runtime semantics syntax logical
A:
Q: // This pseudocode is intended to compute the number// of miles per gallon you get with your…
A: The given pseudocode to compute the number of miles per gallon is wrong.The corrected pseudocode is…
Q: Scientists measure an objects mass in Kilograms and its weight in newtons. If you know the mass of…
A: Here I have created 3 functions getInput() , calculateWeight(), and showResult(). getInput()…
Q: . The following pseudocode works, but it performs a case-sensitive validation of the user's input.…
A: Case sensitive: Typed input is sensitive to capitalization of letters. Example: "science" and…
Q: What would be displayed as the daily dosage of medicine to be administered to a dog weighing 4.9…
A: Given psudocode is if dogWeight numeric then number500 = dogWeight * 2 if number500 MOD 1…
Q: The following pseudocode works, but it performs a case-sensitive validation of the user’s input. How…
A: the answer is given below:-
Q: Use the pseudocode description below to create a program which will be for a travel agency (with…
A: Introduction of the Program: The C++ program takes the user name as input and then the program…
Q: Create a basic calculator that will get the sum, difference, product and quotient of two numbers…
A: creativity:- use while true loop that will ask again and again to use calculator until user presses…
Q: If the programmer translates the following pseudocode to an actual programming language, a syntax…
A: In programming language, All variable names must begin with a letter of the alphabet or an…
Q: Write a pseudocode module that will produce the following output: | Microsoft Visual Studio Debug…
A:
Q: If the following pseudocode wer an actual program, why would it not display the output that the…
A: why it not working correctly ?? Because in last line Display "favoriteFood" you are not printing the…
Q: Find the error in the following pseudocode: Module main() Declare Real mileage Call…
A: Function is set of statement that contains instructions and it has a calling name.
Q: Create a grade calculator that computes for the semestral grade of a course. Students could type…
A: Python Code: # Enter the name, course, Prelim, mid term and finalName = input("Enter Student Name:…
Q: The following code will not display the results expected by the programmer. Can you find the error?…
A: The program has an error of using the wrong variable name while taking an average of lowest and…
Q: While stepping through code, the debugger highlights the statement that .a. was just executed b.…
A: ANS: - Option(b) will be executed next is correct.
If the programmer translates the following pseudocode to an actual
Declare String 1stPrize
Display "Enter the award for first prize." Input 1stPrize
Display "The first prize winner will receive ", 1stPrize
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- 1. If the following pseudocode were an actual program, why would it not display the output that the programmer expects? Declare String favoriteFood Display "What is the name of your favorite food?" Input favoriteFood Display "Your favorite food is " Display "favoriteFood" 2. If the programmer translates the following pseudocode to an actual programming language, a syntax error is likely to occur. Can you find the error? Declare String 1stPrize Display "Enter the award for first prize." Input 1stPrize Display "The first prize winner will receive ", 1stPrize 3. The following code will not display the results expected by the programmer. Can you find the error? Declare Real lowest, highest, average Display "Enter the lowest score." Input lowest Display "Enter the highest score." Input highest Set average = low + high / 2 Display "The average is ", average, "." 4. Find the error in the following pseudocode. Display "Enter the length of the room." Input length Declare Integer…If the following pseudocode were an actual program, why would it not display the output that the programmer expects? Declare String favoriteFood Display "What is the name of your favorite food?"Input favoriteFood Display "Your favorite food is "Display "favoriteFood"Differentiate between Pass by value and Pass by reference. Also explain with the help of code. (Visual .net)
- write a code snippet that can arrange the alphabet of a name entered by user in alternate case .note: ignore with spaces. Input string:Timothy olyphant . output string:TiMoThY OlYpHaNt. input string:Olga kurylenko. output string:OlGa KuRyLeNkO. by c language.If the following pseudocode wer an actual program, why would it not display the output that the programmer expects? Declare String favoriteFood Display "What is the name of your favorite food?" Input favoriteFood Display "your favoite food is " Display "favoriteFood"In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold: What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005. Hello Amanda! You were born in 2005. Write the program. Format your code using best practices. Refer to the zyBooks style guide, if needed, to use proper naming conventions for variables and methods. Use the most appropriate statements with minimal extraneous elements, steps, or procedures. Run the program. Debug the program. Be sure your code produces the correct results. Save and submit your file.
- 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// This pseudocode is intended to compute the number// of miles per gallon you get with your automobile.start input milesTraveled input gallonsOfGasUsed milesPerGallon = milesTraveled + gallonsOfGas output milsperGallonstartIn this lab, you use the flowchart and pseudocode found in the figure below to add code to a partially created Java program. When completed, college admissions officers should be able to use the Java program to determine whether to accept or reject a student, based on his or her test score and class rank. start input testScore, classRank if testScore >= 90 then if classRank >= 25 then output "Accept" else output "Reject" end if else if testScore >= 80 then if classRank >= 50 then output "Accept" else output "Reject " endif else if testScore >= 70 then if classRank >= 75 then output "Accept" else output "Reject" end if else out put "Reject" end if end if end if stop Instructions Study the pseudocode in picture above. Declare the variables testScoreString and classRankString. Write the interactive input statements to retrieve: A student’s test score (testScoreString) A student's class rank (classRankString) Write the statements to convert the string representation…
- Python programming language Write code that does the following: calculate how much one Oreo cookie is concerning: calories, sodium, carbohydrate, fat create a user input that asks how much cookies you ate calculate how much calories, etc. you consumed warn the user that if he/she surpasses 2000kcal he/she should stop eating these darn delicious cookies use variables!Create a Rock-Scissors-Paper Game. Each player should take his turn at a time without seeing the other player’s choice. The program must be good for a race-to-two game, thus it must monitor the player’s score. (C Language)• Write a program that will compute the students average • The user will input the following: Name Math Science English • If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.” • However, if his average is equal and above 75 but fail to pass one or two subjects, it will display “Congratulations. You passed the semester. But you need to re-enroll (subject name) subject."