Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is a question I couldn\'t complete: Suppose you are asked to design a softw

ID: 3623654 • Letter: T

Question

This is a question I couldn't complete:

Suppose you are asked to design a software that helps an elementary school student learn
multiplication and division of one-digit integer numbers. The software allows the student to
select the arithmetic operation she or he wishes to study. The student chooses from a menu one
of two arithmetic operations: 1) Multiplication and 2) Division (quotient). Based on the student
choice, the software tests the user with exactly 10 questions. For each question, two random
positive one-digit integers are generated; then the student is asked to enter the answer for the
arithmetic operation.
The software displays a message “Congratulations!” if more that 7 questions are answered
correctly otherwise, the program should display "Please ask your teacher for help!".
The Challenge
Design the software system with the following separate sub-programs (You may define
additional sub-programs if needed):
1. A sub-program (called print_Menu()) that prints the operations menu and returns the
user selection as integer value. The sub-program loops until the user enters a valid choice
(15 points).

int print_Menu();

2. A sub-program (called run_Test()) to execute the arithmetic test. The sub-program
receives references to three arrays (x, y, and answers that will store the randomly
generated numbers and the user’s answers and also receives an integer that represents the
required operation from the main function (1 for multiplication and 2 for division). The
sub-program then gets the student to answer 10 questions as follows:
a. Randomly generates two positive one-digit integers,
b. Stores the two numbers in the two arrays,
c. Ask the student to enter the answer for the arithmetic operation of the two
numbers,
d. Stores the user’s answer in the third array.
The sub-program has the following prototype:

void run_Test(int x[], int y[], int answers[], int operation, int size)

3. A sub-program (called Print_Summary()) that prints out a summary table for the
questions and answers. The table should also indicate the incorrect answers. The sub-
program returns the number of correct answers.

int Print_Summary(int x[], int y[], int answers[], int operation, int
size)
4. The main program consists of a loop that controls the overall process, i.e., prints the main
menu and get a user selection by calling print_Menu(), run the test by calling
run_Test(), print a summary of the test by calling print_Summary(), and prints the
confirmation message to the user (“Congratulations!” or “Please ask your teacher for
help!”)). In the selection menu, allow the user to terminate the program.

Here is an example of the designed software:

This software tests you with 10 questions ……
1) Multiplication
2) Division
3) Exit
Please make a selection (1–3): 1
Please give the answers to the following additions:
5 x 4 = 20
1 x 8 = 8
2 x 3 = 6
9 x 9 = 77
4 x 2 = 8
3 x 7 = 21
2 x 2 = 4
8 x 5 = 40
9 x 2 = 18
1 x 1 = 1

Exam summary:
5 x 4 = 20 – correct answer
1 x 8 = 8 – correct answer
2 x 3 = 6 – correct answer
9 x 9 = 77 – Incorrect answer – the answer is 81
4 x 2 = 8 – correct answer
3 x 7 = 21 – correct answer
2 x 2 = 4 – correct answer
8 x 5 = 40 – correct answer
9 x 2 = 18 – correct answer
1 x 1 = 1 – correct answer
Congratulations! You scored 9/10.

 

this is a simple example for a C-code that I want this program to be written with:

 

# include <stdio.h>
int TnumofS(int h, int m, int s);
int main()
{
    int a, b, c, x;
    printf("Enter the number of hours, minutes and seconds to get the total number of seconds ");
    scanf("%d%d%d", &a, &b, &c);
    x=TnumofS(a,b,c);
    printf("The total number of hours is %d",x);
}
int TnumofS(int h, int m, int s)
{
int TNS;
TNS = h*60*60 + m*60 + s;
return(TNS);
}

Explanation / Answer

// crmstr1.cpp : Defines the entry point for the console application. // #include "iostream" #include "stdio.h" #include "time.h" using namespace std; int print_Menu(); void run_Test(int x[], int y[], int answers[], int operation, int size); int Print_Summary(int x[], int y[], int answers[], int operation, int size); void main(){ int user_choice=print_Menu(); int x[10],y[10],answers[10]; while(user_choice != 3){ if(user_choice2){ return ; }else{ run_Test(x,y,answers,user_choice,10); Print_Summary(x,y,answers,user_choice,10); } user_choice=print_Menu(); } return ; } int print_Menu(){ int user_choice; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote