Part of the following pseudocode is incompatible with the Java, Python, C, and C++ languages. Identify the problem. How would you fix the problem if you were to translate this pseudocode into one of the aforementioned languages?
Module checkEquality(Integer num1, Integer num2)
If num1 = num2 Then
Display "The values are equal."
El se
Display "The values are NOT equal."
End If
End Module
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
Starting Out with C++: Early Objects (9th Edition)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Database Concepts (8th Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
Experiencing MIS
Starting Out with Java: Early Objects (6th Edition)
- C Programming Language Note: Input and Output Must be the same as in case above Use C Language Only need the answer ASAParrow_forward#Basic Python, please help# Roses on a tree can be either red or white, represented with an appropriate data type that you will need to design. In panic mode, you must write a Python program that paints red all the roses on a rose tree. Test your program on 3 trees, each holding at least 7 roses.arrow_forwardLanguage : Java or C++ Write a Program that takes users input Date, Month and Year and detect what day of the week was it. e.g 17 July 2007 Output will be : Tuesday Note : Be aware of Leap yeararrow_forward
- COnvert to C# Language only def Deposit(balance, pin): # Deposit functionp = int(input("Enter the PIN: "))if p == pin:amount = float(input("Enter deposit amount: "))balance += amountprint("You successfully deposited an amount of ", amount)else:print("Incorrect PIN!!")return balancedef Withdraw(balance, pin): # withdrawp = int(input("Enter the PIN: "))if p == pin:amount = float(input("Enter withdraw amount: "))if amount > balance:print("Insufficient Balance")else:balance -= amountprint("You successfully withdraw ", amount)else:print("Incorrect PIN!!")return balancedef Inquire(balance, pin): # Inquire functionp = int(input("Enter the PIN: "))if p == pin:print("The outstanding balance is =", balance)else:print("Incorrect PIN!!")# main program# taking initial amount from userinitial_amount = float(input("Enter initial amount: "))while True:pin = int(input("Enter a 4 digit PIN: "))if len(str(pin)) != 4:print("Invalid PIN!! PIN must be of 4 digit.")else:breakprint("\n**** SELECT…arrow_forwardDifferentiate between “Call by value” and “Call by Reference”.arrow_forwardCODE USING C++ 3. Set Me For Life by CodeChum Admin Thanks for showing me what I should with my life hihi Thanks to your help, I'm starting to turn around my life. The next thing I need to do is to set myself up for life. To do it, I need to have money. I have a wallet here that can hold n number of bills. Can you please help me store all my money in my wallet? Instructions: Your task is to create an array that can hold n number of bills. After you have that array, take in n number of inputs which represents the number of bills. Finally, print all the bills in order. Input 1. The value of n 2. A series of values representing the number of bills Constraints This can only be an integer value. Output Enter·n:·5 Enter·bill·#1:·1000 Enter·bill·#2:·500 Enter·bill·#3:·200 Enter·bill·#4:·500 Enter·bill·#5:·1000 Bills: 1000 500 200 500 1000arrow_forward
- C++ Language Activity 7 - Create a program that calculates the AREA of a CIRCLE - The user can input the RADIUS of the CIRCLE Calculate and display the AREAarrow_forwardC++ language: Write a program in which user enters the radius(in cm) of a semicircle( D shape) and the program prints the perimeter of the semicircle in output.arrow_forwardComputer ProgrammingLanguage: CConditional Statementsarrow_forward
- Lab #3 – Day CalculationBackground - Many times one needs to do calculations on dates. Programs like Excel use the number of days since 1/1/1970 when doing these calculations. We don't know enough C++ to completely do this calculation, yet, but we can make a start.Problem - You will prompt a user for a month, a day and a year. You will then tell the user how many days since January 1 of that year the input date is.For example if the user inputs a 3 for the month, a 2 for the day, and 2000 for the year the program outputs the number of days as being 62. Note 2000 is a leap year. Therefore you must test to see if a year is a leap year when doing this problem.The three rules which the Gregorian calendar uses to determine leap year are as follows:1. Years divisible by four are leap years, unless...2. Years also divisible by 100 are not leap years, except...**3. Years divisible by 400 are leap years. **** Combining rules 2 & 3: Centennial years that are not divisible by 400 are not leap…arrow_forwardCODE USING C++ 4. Find the Elephant by CodeChum Admin When dealing with problems, it is always best to find the "elephant" in the room. The elephant is basically the biggest issue. Once this is resolved, it's almost always easier to move forward. As a therapist, I know how to find the elephant in the room. However, I'm feeling sick today and the next client is coming. Could you please find the elephant for me? Instructions: In the code editor, you are provided with a function, findElephant() that accepts a 2D array and returns the largest element in the array. This function has already been implemented so do not edit this. You are also provided with the 2D array in the main() function. Your only task is to call the findElephant() function and pass the 2D array, and print the return value. Output Elephant:·10 EDIT THIS CODE: #include <iostream>#include <climits>using namespace std; int findElephant(int[][100]); int main(void) { int…arrow_forwardPROGRAM DESCRIPTION A new video store in your neighborhood is about to open. However, it does not have a program to keep track of its videos and customers. The store managers want someone to write a program for their system so that the video store can operate. The program will require you to design 2 ADTs as described below: ps: Hi I need some code for this kind of problem. I will be using C++ programming language, and I really need your help in solving this. Thank you so mucharrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT