Answer:
file_name = 'orders.txt'
file_obj = open( file_name, 'r' )
lines = file_obj.read()
print(lines.upper(), end = '')
Explanation:
- Define the name of the file
.
- Use the built-in open function to open the file in read mode
.
- Use the built-in read function to read the file and assign this to lines variable.
- Finally display the lines by converting them to capital alphabets by using the built-in upper() function.
Answer:
Glue Language
Explanation:
I'm not 100% sure, but here is the definition.
Glue language- A programming language that can be used to provide interoperability between systems not originally intended to work together
Answer:
D.
Explanation:
Based on the information provided within the one choice that will least likely impact the programmer's choice in design would be the frequency of a particular item occurring in a data set. This is because the system needs to be handle a large amount of data and be able to scale accordingly, regardless of how many frequent a particular item occurs.
Answer:
import java.util.Scanner;
public class num1 {
public static void outputMinutesAsHours(double origMinutes) {
double hours = origMinutes / 60;
System.out.println("The converted hours is " + hours);
}
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
double minutes;
minutes = scnr.nextDouble();
outputMinutesAsHours(minutes); // Will be run with 210.0, 3600.0,
System.out.println("");
}
}
Explanation:
The question required us to only write the statement to complete the line
outputMinutesAsHours(double origMinutes) { /* Your solution goes here */ }
The solution double hours = origMinutes / 60; solves this because there are 60 minutes in one hour, so to conver minutes to hours, you divide the number of minutes by 60