Question

Logic and Design Programming In Syntax Pseudocode Algorithm Workbench 1. Design a simple function named timesDozen...

Logic and Design Programming

In Syntax Pseudocode

Algorithm Workbench

1. Design a simple function named timesDozen that accepts an Integer argument into a parameter named nbr. When the function is called, it should return the value of its argument multiplied times 12.

2. Assume that a program has two String variables named alpha and bravo. Write - a pseudocode statement that assigns an all uppercase version of alpha to the bravo variable.

Book name is Starting Out with Programming Logic and Design (5th Edition)

Chapter 6: Functions

Homework Answers

Answer #1

Here is the required solution

Question 1)

PSEUDOCODE

1)timesDozen(int nbr)

2) return 12*nbr;

here is the code in python language

Ques 2)

PSEUDOCODE

1) FUN(string alpha,string bravo)

2) for each character in alpha check if character is uppercase or not

3)if character is in uppercase than assign it to string alpha

4)else convert character into uppercase than assign it to alpha

5)return

Here is the python code

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT