Answer:
Here is the program:
current_time = '2014-07-26 02:12:18:'
my_city = ''
my_state = ''
log_entry = ''
my_city = input("") #reads in value for my_city
my_state = input("") #reads in value for my_state
log_entry = current_time + ' ' + my_city + ' ' + my_state #concatenates current_time, my_city and my_state values with ' ' empty space between them
print(log_entry)
Explanation:
You can also replace
log_entry = current_time + ' ' + my_city + ' ' + my_state
with
log_entry = f'{current_time} {my_city} {my_state}'
it uses f-strings to format the strings
If you want to hard code the values for my_city and my_state then you can replace the above
my_city = input("")
my_state = input("")
with
my_city = "Houston"
my_state = "Texas"
but if you want to read these values at the console from user then use the input() method.
The screenshot of the program along with the output is attached.
The way a particular application views the data from the database that the application uses is a sub-schema.
<h3>What is Database?</h3>
A Database may be defined as a process of collecting data and information that is principally assembled for quick search and recoupment by a computer.
The sub-schema is the reasoning elucidation of that section of the database which is applicable and accessible to a specific application. This type of database is common to two or more applications.
Therefore, the sub-schema is the way through which a particular application views the data from the database that the application uses.
To learn more about Database, refer to the link:
brainly.com/question/26096799
#SPJ4
Answer:
Code:-
// Program takes a hot dog order
// And determines price
using System;
using static System.Console;
class DebugFour1
{
static void Main()
{
const double BASIC_DOG_PRICE = 2.00;
const double CHILI_PRICE = 0.69;
const double CHEESE_PRICE = 0.49;
String wantChili, wantCheese;
double price;
Write("Do you want chili on your dog? ");
wantChili = ReadLine();
Write("Do you want cheese on your dog? ");
wantCheese = ReadLine();
if (wantChili == "Y")
{
if (wantCheese == "Y")
price = BASIC_DOG_PRICE + CHILI_PRICE + CHEESE_PRICE;
else
price = BASIC_DOG_PRICE + CHILI_PRICE;
}
else
{
if (wantCheese == "Y")
price = BASIC_DOG_PRICE + CHEESE_PRICE;
else
price = BASIC_DOG_PRICE;
}
WriteLine("Your total is {0}", price.ToString("C"));
}
}
Answer:
"Datawarehouse" is the correct answer for the above question.
Explanation:
- The Datawarehouse is a collection of large data or database which holds the historical data and the current or operation data for future decisions of the profit of the organization.
- The decision can be made after being analyzed the data which is extracted from the Dataware house.
- The above question also states the database which works like the above-defined concept. Hence Datawarehouse is the correct answer to the above question.