Question: im not sure what im doing wrong, I've tried multiple ways and it either failes to compile or simply just doesn't compile as intended to.

im not sure what im doing wrong, I've tried multiple ways and it either failes to compile or simply just doesn't compile as intended to.
Please dont use: loops or brackets (for example: passCode[i] because my class hasn't covered this material.
we are only using if-else statements
the last photo shows what the program outputs when I typed the incorrect solution.
thank you for helping
 im not sure what im doing wrong, I've tried multiple ways
and it either failes to compile or simply just doesn't compile as
intended to. Please dont use: loops or brackets (for example: passCode[i] because

A 3-character string. passCode, is read from input. Replace each digit character in passCode with".: Otherwise, passCode is not changed. Ex. If the input is 5pd, then the output is: - pd 2 3 3] 2 isdigit 0 is used to check if each character in passCode is a digit. All digit characters in passcode are then replaced with :.. Not all tests passed. 1: Compare output Output differs. See highlights below. Input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!