Create a mini quiz game program that asks the user three (3) questions,the starting score is 10 points.if the answer is incorrect 1 point is deducted from the score
Design an algorithm that converts a temperature value in Fahrenheit (F) to value in Celsius (C) using the following formula: C = (F -32) x (100/180)
design an algorithm that adds numbers from 1 to 100
Ms. Blanchett owns 5 apartment buildings. Each building contains 10 apartments that she rent out for RM 500 per month each. The program should output 12 payment coupons for each of the 10 apartments in each of the 5 buildings. Each coupon should contain the building number (1 through 5), the apartment number (1 through 10), the month (1 through 12), and the amount of rent due.
by CodeChum Admin
You can also make a list of numbers, ey? Let's go and have some fun in tweaking the values of each element, but let's give it some twist to add on some fun to the code.
Let's have a go at it!
Instructions:
Output
The squares and cubes of the elements in the array.
4
1
1
8
27
.
.
.Write a Python program that will ask the user to input a string (containing exactly one word). Then your program should print subsequent substrings of the given string as shown in the examples below.
Write a Python program that will ask the user to enter a word as an input.
Suppose you are given two strings, s1, and s2. Now, print a new string made up of the last characters and then the first characters of the input strings.
=====================================================================
Sample Input 1:
s1 = new
s2= string
Sample Output 1:
gwsn
Explanation: The last character of the String s2 is 'g'. The last character of the String s1 is 'w'. The first character of the String s2 is 's'. The first character of the String s1 is 'n'. Together they give us the ouput we want 'gwsn'.
=====================================================================
Sample Input 2:
s1 = abcd
s2= efgh
Sample Output 2:
hdea
Explanation: The last characters of the Strings s2 and s1 is 'h' and 'd' respectively while the first characters of the Strings is 'e' and 'a' respectively. Together they give us the ouput we want 'gwsn'
Write a program that will store the student id number, average quiz score, midterm exam score, and final exam score maximum of 25 students(score must from 0 to) and Instead of forcing the user to enter all of the data at once and displaying all of it, the program will provide menu options that allows user to add new records, delete, update and view all records. It should also provide an option called settings that allows the user to set the grading criteria that will be used in the computation of grades. You may include an additional functionality that allows the user to search a specific record of a student given the student number. A sample menu driven application is given below
Mini Grading System
1. Add New Record
2. Edit Record
3. Delete Record
4. View All
5. Settings
6. Search
7. Exit
Enter your choice:
C++ (use two-dimensional array) A company has four salespeople (1-4) who sell five different products (1-5).each salesperson passes in a slip for each different type of product sold. Each slip contains the following:
a) salesperson number
b) product number
c) total dollar value of that product sold that day
Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume the information from the slips for last month is available. Write a program that will read all information for last month’s sales (one salesperson’s data at a time) and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales. After processing all the information for last month, print the results in tabular format with each of the columns representing a salesperson and each of the rows representing a product. Cross total each row to get the total sales of each product for last month; each column to get the total sales by salesperson for last month.