Natural

 20 Minutes
 10 Questions


The Technology, Natural, Basics test is designed to assess your knowledge and understanding of the fundamental concepts related to technology and nature. This test will cover topics such as the basic principles of technology, the natural world, and the relationship between the two. You will be tested on your ability to identify and explain key concepts related to technology and nature, as well as your ability to apply this knowledge to real-world scenarios. The Technology, Natural, Screens and Maps test is designed to assess your knowledge and understanding of the use of screens and maps in technology and nature. This test will cover topics such as the use of screens and maps in navigation, the impact of technology on the natural world, and the benefits and drawbacks of using screens and maps in outdoor activities. You will be tested on your ability to identify and explain key concepts related to screens and maps in technology and nature, as well as your ability to apply this knowledge to real-world scenarios.


Example Question:

Multiple-Choice
You are developing a program to display product information on the screen, including product name, price, and a dynamic discount based on customer loyalty level. The program reads data from three files:



products: Contains product information like product ID, name, and price.
customers: Stores customer details like customer ID, name, and loyalty level (bronze, silver, gold).
discounts: Defines discount percentages for each loyalty level.
Here's a simplified code snippet:



DEFINE FILE products
 PRODUCT-ID   CHAR(5)
 PRODUCT-NAME  CHAR(30)
 PRICE     DECIMAL(5,2)
END-DEFINE


DEFINE FILE customers
 CUSTOMER-ID   CHAR(5)
 CUSTOMER-NAME  CHAR(30)
 LOYALTY-LEVEL  CHAR(10)
END-DEFINE


DEFINE FILE discounts
 LOYALTY-LEVEL  CHAR(10)
 DISCOUNT-RATE  DECIMAL(5,2)
END-DEFINE


CUSTOMER-RECORD = READ customers
PRODUCT-RECORD = READ products


DEFINE MAP product_details_map
 "Product ID:"  AT 1,1 SIZE 10
 PRODUCT-ID    AT 3,1 SIZE 5
 "Product Name:" AT 5,1 SIZE 30
 PRODUCT-NAME   AT 7,1 SIZE 30
 "Price:"     AT 9,1 SIZE 15
 PRICE      AT 11,1 SIZE USING PRICE FORMAT "#,##0.00"
 "Discount:"   AT 13,1 SIZE 15
 **-- Calculate discount based on loyalty level (complex logic needed here)**
 DISCOUNT     AT 15,1 SIZE USING PRICE FORMAT "#,##0.00"
 "Final Price:"  AT 17,1 SIZE 15
 **-- Calculate final price considering discount (complex logic needed here)**
 FINAL-PRICE   AT 19,1 SIZE USING PRICE FORMAT "#,##0.00"
END-DEFINE


WRITE USING product_details_map FROM PRODUCT-RECORD






How would you complete the map definition to calculate the discount and final price based on the customer's loyalty level?