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"
Q: Last mon th Joe purchased 100 shares of stock for $45 .50 per sha re and paid hisstock broker a…
A: #include <iostream>#include <iomanip> using namespace std; int main(){ int…
Q: Example: the screen appears as follows: Enter 3 characters (A-Z)? AHMED No. of characters are= 5
A: As in the question, no programming language is mentioned. I am using Python language to do the…
Q: The Nimble Fingers Typing School assigns grades based on words typed per minute, as shown in Figure…
A: Required:
Q: Develop a program that displays the following pieces of information, each on a separate line: Your…
A: cout statement is used to output the statement and \n is used to print new line. program…
Q: #1. Airplane Seating Assignment. Write a C# Windows App that can be used to assign seats for a…
A:
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: Determine the error in the following program.Private Sub btnOutput_Click(...) Handles…
A: Given data;- Determine the error in the following program.Private Sub btnOutput_Click(...) Handles…
Q: rite a program that asks interactively the user's name and age and esponds with lello name, next…
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner sc=new…
Q: Reham's little brother has a geographical compass which has 'S', 'N', 'W' and 'E' marked on it. Her…
A: Step 1: Prompt and accept the alphabet. Step 2: Use if-else if-else construct to compare the…
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: Create a pseudocode application that invites the user to enter his or her age and then reports…
A: The question is to write python code for the given problem.
Q: A piece of data that is written into a program’s code is a(n) ___________. a. identifier b.…
A: Explanation of all the given options: a) Identifier: In a programming language, there are some…
Q: Question: Similarly, what can be displayed from the output of the program?
A: Option 1 is correct It determines whether a number is either positive, negative or zero
Q: Write a code snippet that can arrange the alphabets of a name entered by user in alternate…
A: #include <iostream>#include <string>using namespace std; int main() { string name;…
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: Light travels at 3 x 10° meters per second. A light-year is the distance a light beam travels in one…
A: In this question, we are asked to write a python program such that it return the distance of light…
Q: Jsing conditional statements and looping statements, construct a Java program for a scientific…
A: Below is the complete explanation and solution for the given program. Below is the complete Java…
Q: my name: Almoatasem My ID: 1704085 6. Write a program to display your name, ID and average of your…
A: mod(temp, 10); : calulate, temp%10 ,ie. remainder, when dividing temp by 10…
Q: 5. Write a program which asks the user to enter their password. If they enter the word "PASSWORD"…
A: Visual basic program Program which ask the user to their password If they enter PASSWORD it display…
Q: This program intends to display the user's favorite food. Declare String favoriteFood Display "What…
A: Given: To write a program that displays users favorite food. Program is written in Java.
Q: If the programmer translates the following pseudocode to an actual programming language, a syntax…
A: Given Information- Declare String 1stPrize Display "Enter the award for first prize." Input 1stPrize…
Q: (Guess the Number Game) Write a program that plays “guess the number” as follows: Your program…
A: A TextBox should be used to input the Number to TextBox1 input the guess. to TextBox2…
Q: Design a program that gives simple math quizzes. The program should display two random numbers that…
A: NOTE - I have used the Python programing language. Here I have created 2 random numbers and then…
Q: A new bank has been established for children between the ages of 12 and 18. For the purposes of this…
A: We need to write a pseudo code for the given atm system.
Q: The three main logical operators are and And, Or, Not False, And, True And, Not, If O Or, Not, If In…
A: Solution: AND, OR, NOT are the three are the three main logical operators in the system
Q: "My favorite number is " + 7 Select the correct data type that the above expression evaluates to in…
A: which datatype is valid "My favorite number is" +7
Q: 4. Statement: String str = "Hello world!", str = str.substring (1, 4), the value of str after…
A: As given, I need to find the correct answer for the above given question - String str ="Hello…
Q: Declare a constant named YEAR, and initialize YEAR with the value 2050. Edit the statement myNewAge…
A: We will solve this problem in Java language.
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Code: import java.util.Scanner;public class CookieCalorieCounter{ public static void main(String[]…
Q: Kathryn bought 600 shares of stock at a price of $21.77 per share. A year later she sold them for…
A: PROGRAM CODE: #include <iostream>using namespace std; int main(){ double NumOfShares = 600,…
Q: You are required to write pseudocode statements for the following: a) Write the comment "This is how…
A: The question is to write pseudocode.
Q: Instructions QuartsToGallonsjava + 1 // QuartsToGallons.java 2 class Quarts ToGallons { public…
A: public class QuartsToGallons{ public static void main(String[] args) { int QUARTS_IN_GALLON;…
Q: Kim wants to buy a car. Help Kim compute the monthly payment on a loan, given the loan amount, the…
A: Actually, given information Kim wants to buy a car. Help Kim compute the monthly payment on a loan,…
Q: You are required to write pseudocode statements for the following a) Write the comment "This is how…
A: Given that you are required to write pseudo code statement for the following : a)write the comments…
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: According to the information given: We have to follow the instruction to get the desired outcome-
Q: Pseudocode: If Apples = 6, what will be displayed after code corresponding to the following…
A: Answer: Goodbye, apple lover Explanation: Here we have assigned Apples to 6 but in the condition we…
Q: A variable must be __________ before it can be used in a program.
A: Given:- A variable must be __________ before it can be used in a program.
Q: A program has the following variable definitions. long miles; int feet; double inches; Write a single…
A: cin statement that reads a value into each of these variables is given below:
Q: Look at the following pseudoocode and insert the missing statement: Start // Declare variables…
A: Required: Look at the following pseudoocode and insert the missing statement:
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: 15 - final question Assuming you have implemented a mini calculator. U MiniCalculator Result Number…
A: Since we need to check for missing input in textboxes, we need check both the textboxes. No single…
Q: Computer skills (Engineering) Functions Exercise (Parking Charges) A parking garage charges a $2.00…
A: #include<iostream> #include<conio.h> #include<iomanip> using namespace std; int…
Q: variable name can start with.? a. Either alphabet or underscore() Ob. Only Underscore (- ) sign OC.…
A: A variable is a symbolic name for (or reference to) information. The variable's name represents what…
Q: Question 18 Guessing Game Code a solution for the following problem. Post your program in the…
A: Given: Given a coding question ,we need to write the C++ code for it .
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: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Given:- The monthly payment for a given loan pays the principal and the interest. The monthly…
Q: 3. Review the code: "joe" name age 16 print "my name is and I am %3. + name + + age + years old"…
A: This will cause syntax error because parentheses are missing in the print statement and we are using…
Q: Enter a letter (0 to end program): a Aubrey Enter a letter (0 to end program): 5 Please enter a…
A: C program
Q: Last month Joe purchased 100 shares of stock. Here are the details of the purchase: • When Joe…
A: Given: Last month Joe purchased 100 shares of stock. Here are the details of the purchase: • When…
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"
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- 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" 5. Find the error in the following pseudocode. Declare Real pi Set 3.14159265 = pi Display "The value of pi is ", pi1. 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"
- Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.Pig Latin is a nonsense language. To create a word in pig Latin, you remove the first letter and then add the first letter and ay at the end of the word. For example, dog becomes ogday and cat becomes atcay. Write a program named PigLatin that allows the user to enter a word and displays the pig Latin version.This program intends to display the user's favorite food. Declare String favoriteFood Display "What is the name of your favorite food?" Input favoriteFood Display "Your favorite food is " Display Next
- Population Tracker Learning Objective: Using Python Repetition and Loop Statements Problem Description Write a Python program (Console and GUI) that predicts the approximate size of a population of organisms. The application should use text boxes to allow the user to enter the following information: starting number of organisms, the average daily population increase (as a percentage), and the number of days the organisms will be left to multiply. For example, assume the user enters the following values: Starting number of organisms: 2 Average daily increase: 30% Number of days to multiply: 10 The program should display the following table of dataINFS3410 Practice Questions Chapters 1, 2 and 3 The Following is an example run of an educational program for school children. The program help kids to practice their additions and subtraction skills. Your task is to develop a program that can achieve the same exact thing. Bear in mind the following important guidelines: - The user may choose between additions and subtractions - The user may choose the difficulty level (easy, medium, hard) - The program should display 5 questions and calculate the total score - No two questions should be the same Please enter your name: Hafedh AlShihi ************** Hello Hafedh AlShihi Welcome to our Additions / Subtractions Practice ****k********* Which operation you want to practice? Type 1 for Additions, or Type 2 for subtractions: 2 Please select your difficulty level Type 1 for Easy (numbers 1 to 10) Type 2 for Medium (numbers 10 to 100) Type 3 for Hard (numbers 100 to 1000) 1 Here are 5 easy-level subtraction questions, please attempt all: How…Us------c. Prak 9 Instructions PDF -mming Prak 9 Chapter 6: Modularizing Your Code with Methods 1. Salesperson's Commission Calculator (Nr 1, Page 408) Create an application that lets the user enter a salesperson's revenue sale and the rate of commission paid by the company, and display the commission earned. For example: • If a salesperson sells $100,000 in revenue while working with a company that pays 5 percent of the revenue, his/her commission check will be $5,000. • if a salesperson sells $100,000 in revenue while working with a company that pays 8 percent of the revenuo, his/her commission check will be $8,000. The program should have a method named CalculateDisplayCommission that receives the revenue sale by a salesperson and the commission percentage as arguments, and calculates and displays the commission earned by the salesman. See examples below: Salesperson's Commis. |Salesperson's Commis. 100000 Revenue Sale: 100000 Revenue Sale: Commission Percentage: Commission…
- **using C# and Visual Studio design a program to satisfy the below problem** Create an application that generates a random number in the range of 1 through 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” If the user guesses the number, the application should congratulate the user and then generate a new random number so the game can start over. Optional Enhancement: Enhance the game so it keeps count of the number of guesses that the user makes. When the user correctly guesses the random number, the program should display the number of guesses.// 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 milsperGallonstartPart 4 Add this comment: # Ass 1: Part 4 Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again." If the user's guess is lower than the random number, the program should display "Too low, try again." If the user guesses the number, the program should congratulate the user by displaying "You won, congratulations.". Samplel: Please enter your guess value: 10 Too low, try again. Please enter your guess value: 15 Too low, try again. Please enter your guess value: 30 Too low, try again. Please enter your guess value: 50 Too low, try again. Please enter your guess value: 60 Too high, try again. Please enter your guess value: 55 Too high, try again. Please enter your guess value: 53 You won, congratulations. Sample2: