Answer:
Please see the attached file for the complete answer.
Explanation:
Please Read the flow chart very carefully and try to read it as one Picture, Because Picture size is large.
Answer:
The solution code is written in Python:
- itemsOSS = ""
- userItem = input("Enter an item: ")
-
- while(item != "Exit"):
- itemsOSS += userItem + " "
- userItem = input("Enter an item: ")
-
- print(itemsOSS)
Explanation:
Firstly, we create a variable itemsOSS (intialized it with empty string) and use it as output string stream (Line 1).
Next use input function to prompt user to enter first item (Line 2)
While the item value is not "Exit" (Line 4), append userItem to variable itemsOSS.
When the user enter "Exit", use print function to print the itemsOSS string (Line 8).
Answer:
Office technology refers to the use of computer systems, software and networks for processing and distribution of data and communicating information in the organization.
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double price;
int dollars, cents;
System.out.print("Enter price: ");
price = input.nextDouble();
dollars = (int) price;
cents = (int) (((price - dollars) * 100) + 0.5);
System.out.println("Dollars: " + dollars + ", " + "Cents: " + cents);
}
}
Explanation:
Ask the user to enter price
Typecast the price as int and set it to the dollars
Subtract dollars from price, multiply the difference by 100, add 0.5 to the multiplication and type cast the result as int
Print the dollars and cents