Reference no: EM132331155
Please help; I need to make this as Flowchart and Pseudocode.
1. Make a program that accepts an integer input from the user and display the least number of combinations of 200s, 100s, 50s, 20s, 10s, 5s, and 1s.
[Test your solution using this samples]
a. Input: 250
Output: 1x200s, 1x50s
b. Input: 1127
Output: 5x200s, 1x100s, 1x20s, 1x5s, 2x1s
c. Input: 1127
Output: 5x200s, 1x100s, 1x20s, 1x5s, 2x1s
d. Input: 19
Output: 1x10s, 1x5s, 4x1s
[Hints]
o Use division to determine the number of occurrence of each element (i.e. 200, 100) in the input (e.g. Given 500 if we divide it by the largest number possible; which is 200; we will get 2. Therefore, there are 2x200s.)
o Use subtraction to determine the remaining value of the input. (e.g. In the 500 example, since there are 2x200s, we still have 100 to process. The 100 came from 500 - (2*200) = 100.)
o Use the next largest number possible (i.e. 100) to check the number of occurrence. Continue until the remaining value of the input is zero.
2. Make a program that accepts the firstname and the lastname of the user, and display the first half of the lastname, first half of the firstname, second half of the lastname and second half of the firstname.
[Test your solution using this samples]
a. Firstname Input: Juan
Lastname Input: DelaCruz
Output: DelaJuCruzan
b. Firstname Input: Pedro
Lastname Input: Penduko
Output: PendPedukoro
c. Firstname Input: Johann
Lastname Input: Logan
Output: LogJohanann
d. Firstname Input: Mari
Lastname Input: Santamaria
Output: SantaMamariari
[Hints]
o To determine the first half of the name, you can use name[0, lengthOfName/2]
o To determine the second half of the name, you can use name[lengthOfName/2, lengthOfName]
To determine the length of the name, you can use lengthOfName = GetLength(name)
How to use arrays in c++ code for a mortgage loan calculator
: How to use arrays in c++ code for a mortgage loan calculator. I was thinking of utilizing arrays for multiple users that will give the payment amount
|
What risk management framework
: What risk management framework is best to use for federal government applications residing in the cloud?
|
Importance of clearing cookies from a device
: What is the importance of clearing cookies from a device? And what effect could this have on the device if this is not done?
|
Identify and troubleshoot problems
: Discuss how you can use system tools, such as the Task Manager, to help identify and troubleshoot problems?
|
Display the least number of combinations
: Make a program that accepts an integer input from the user and display the least number of combinations of 200s, 100s, 50s, 20s, 10s, 5s, and 1s.
|
Discuss the technological changes that have been made
: Discuss the technological changes that have been made since now and how those changes have affected humanity
|
Planning new or updated security systems
: How can you determining possible physical threats may affect the choice of physical security countermeasures while planning new or updated security systems.
|
What would you expect the final value of x to be
: If the two processes get about equal cpu time, what would you expect the final value of x to be? For example, if you know for a fact that foo() and bar() both r
|
Current state of the claim and allocation matrices
: Consider a system of 4 processes P1, P2, P3, P4 and a single resource R1. The current state of the claim and allocation matrices (for deadlock avoidance, resour
|